I went ahead and hardcoded checks for fields that as of today I know
will only be in one of the models. I would still love to hear any
cleaner solutions if anyone has them.
On Aug 26, 10:12 am, John wrote:
> Any ideas?
>
> In the inline model's validation I could hardcode checks for data that
> I
Any ideas?
In the inline model's validation I could hardcode checks for data that
I expect will only be in one of the models, but that does not seem
like the best option. I am still hoping for a simpler alternative to
this.
Thanks.
--
You received this message because you are subscribed to the
Hi there,
I am writing an app with Django where I have a model with a generic
foreign key. I
am looking to do some validation on this model based on the
content_type of the
generic foreign key. When I am modifying this model on its admin page,
I am
able to easily determine the content_type because
3 matches
Mail list logo