#22679: makemigrations generates invalid code for default_permissions = ()
-------------------------+-------------------------------------------------
     Reporter:           |      Owner:  nobody
  rockallite.wulf@…      |     Status:  new
         Type:           |    Version:  1.7-beta-2
  Uncategorized          |   Keywords:  makemigrations, default_permissions
    Component:           |  Has patch:  0
  Migrations             |      UI/UX:  0
     Severity:  Release  |
  blocker                |
 Triage Stage:           |
  Unreviewed             |
Easy pickings:  0        |
-------------------------+-------------------------------------------------
 This actually happens in Django 1.7b4.

 When I define a Model with meta info like this:

 {{{
 class Foo(models.Model):
     # ...
     class Meta:
         default_permissions = ()
 }}}

 The {{{./manage.py makemigrations}}} command generates a migration file
 like this:

 {{{
 options={
     # ...
     'default_permissions': (,),
 }
 }}}

 ...which causes SynaxError on migration.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22679>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.d413ef55e38bb14ca6d0b12dce776834%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to