#3055: GenericRelation should squawk if pointed to a model that doesn't have a
GenericForeignKey on it
---------------------------------------------------+------------------------
          Reporter:  pa...@elasticworld.org        |         Owner:  
marcosmoyano
            Status:  assigned                      |     Milestone:             
 
         Component:  Database layer (models, ORM)  |       Version:  SVN        
 
        Resolution:                                |      Keywords:             
 
             Stage:  Ready for checkin             |     Has_patch:  1          
 
        Needs_docs:  0                             |   Needs_tests:  0          
 
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Changes (by ramiro):

  * has_patch:  0 => 1

Comment:

 Nit: consider changing slightly  the validation message to '"model '%s'
 must have a GenericForeignKey in order to create a GenericRelation
 pointing to it."' or similar.

 Other that that, this is RFC.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3055#comment:6>
Django <http://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 post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to