#10827: django.auth create_permissions must clear the content type cache before
creating permissions
------------------------------+------------------------------------
     Reporter:  seanl         |                    Owner:  nobody
         Type:  Bug           |                   Status:  new
    Component:  contrib.auth  |                  Version:  master
     Severity:  Normal        |               Resolution:
     Keywords:                |             Triage Stage:  Accepted
    Has patch:  1             |      Needs documentation:  0
  Needs tests:  1             |  Patch needs improvement:  0
Easy pickings:  0             |                    UI/UX:  0
------------------------------+------------------------------------
Changes (by rjalves):

 * cc: rjalves@… (added)


Comment:

 The attached file is a fresh django project created with Django 1.4.5
 which allows reproducing the mentioned error.
 NOTE: This is not reproducible with the sqlite backend (MySQL was not
 tested but was reported to fail with InnoDB in other tickets #9207).

 Ticket #9207 is closed as fixed but due to lack of reproducibility. From
 the error it looks like a duplicate of the current.
 The workaround described on comment 3 from #9207 also solves the problem
 (putting contrib.contenttypes before contrib.auth in INSTALLED_APPS).

 PS: I don't know if there's any reason why INSTALLED_APPS has the current
 order but having django-admin.py invert the order could workaround this
 problem.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/10827#comment:12>
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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to