Hi Shai,

Could I get you to open this as a ticket so that it isn't forgotten?

Russ %-)

On Thu, Jul 25, 2013 at 8:12 AM, Shai Berger <[email protected]> wrote:

> Hi Christopher,
>
> While you're dealing with model validation, I wonder if you can take a
> look at
> this little example -- a minor failure in the current model validation:
>
>     class General(models.Model):
>         name = models.CharField(max_length=30)
>
>     class Special(General):
>         pass
>
>     class SpecialDetail(models.Model):
>         parent = models.ForeignKey(Special)
>         target = models.ForeignKey(General)
>
>
> Model validation fails (as it should), but the error message is
>
> specialdetail: accessor for field 'parent' clashes with
> 'Special.specialdetail_set'
>
> when in fact the clash is with 'General.specialdetail_set' generated by the
> 'target' field (and inherited by Special). Of course, when isolated like
> this,
> it is very easy to spot where the real problem is, but when the models
> have a
> little more content in them, this can be (and actually was) quite
> perplexing.
>
> Thanks,
>         Shai.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/django-developers.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to