Minor feature request: log adding a custom permission to the database when migrating

41 views
Skip to first unread message

Mikael H

unread,
Jun 16, 2015, 8:27:14 AM6/16/15
to django-d...@googlegroups.com
Hi

I am new to this group so I hope I use the right channels for this request.

When I add a custom permission to a model (in 1.7 at least)  and then run: migrate <appname> 

the following is logged in the console

Operations to perform:
  Apply all migrations: <appname>
Running migrations:
  No migrations to apply.
  Your models have changes that are not yet reflected in a migration, and so won't be applied.
  Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.


The permission is added to the database but it is not showing in the log output above which is a bit confusing. When using South it logged what permissions were added in addition to the migrations. 

Is this something that can be added?

Tim Graham

unread,
Jun 16, 2015, 8:47:04 AM6/16/15
to django-d...@googlegroups.com
It already exists, you just need to specify a higher verbosity level like so: manage.py migrate -v 2

Mikael H

unread,
Jun 16, 2015, 8:57:42 AM6/16/15
to django-d...@googlegroups.com
Thank you!
Reply all
Reply to author
Forward
0 new messages