#22850: False reverse accessor clash with inherited classes
-------------------------------------+-------------------------------------
     Reporter:  semenov              |                    Owner:  nobody
         Type:  Uncategorized        |                   Status:  new
    Component:  Database layer       |                  Version:  1.4
  (models, ORM)                      |               Resolution:
     Severity:  Normal               |             Triage Stage:
     Keywords:                       |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by semenov):

 * version:  1.7-beta-2 => 1.4


Comment:

 I tested both cases on Django 1.4.X branch, the first version crashed with
 similar error:

 {{{
 Unhandled exception in thread started by <bound method Command.inner_run
 of <django.core.management.commands.runserver.Command object at
 0x101e3b110>>
 Traceback (most recent call last):
   File "/Users/semenov/work/project/venv/lib/python2.7/site-
 packages/django/core/management/commands/runserver.py", line 91, in
 inner_run
     self.validate(display_num_errors=True)
   File "/Users/semenov/work/project/venv/lib/python2.7/site-
 packages/django/core/management/base.py", line 270, in validate
     raise CommandError("One or more models did not validate:\n%s" %
 error_text)
 django.core.management.base.CommandError: One or more models did not
 validate:
 project.pointer: Accessor for field 'derived' clashes with related field
 'Derived.pointer_set'. Add a related_name argument to the definition for
 'derived'.
 }}}

 The second version worked fine.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22850#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.adb184e146d4601125302a74e770ff8c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to