#10827: django.auth create_permissions must clear the content type cache before
creating permissions
-------------------------------------+--------------------------------------
          Reporter:  seanl           |         Owner:  nobody
            Status:  new             |     Milestone:        
         Component:  Authentication  |       Version:  SVN   
        Resolution:                  |      Keywords:        
             Stage:  Accepted        |     Has_patch:  1     
        Needs_docs:  0               |   Needs_tests:  0     
Needs_better_patch:  0               |  
-------------------------------------+--------------------------------------
Comment (by PeterRussell):

 It seems that the reason that this happens is that the syncdb command is
 firing the post_syncdb signal for each application, as returned from
 get_apps() [source:/django/trunk/django/core/management/sql...@14849#l178
 here].  Get_apps appears to return apps in app-name order (see
 [source:/django/trunk/django/db/models/loading...@14849#l120 here]), and
 auth comes before contenttypes asciibetically.  It seems the right
 solution is probably to have a separate post_contenttypes_refreshed
 signal, and have create_permissions listen for that.  It would also be
 great if updating permissions could fire its own signal, so you can update
 groups etc based on that. (We've been having a somewhat similar issue).

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10827#comment:4>
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to