On 12/31/2017 11:51 AM, Josh Smeaton wrote:
- I dislike the seetings approach of GLOBAL_PERMS and would rather see
users writing explicit data migrations.
I don't favour either setting or migration based perms, but if you're
going to go with migration based, then please also consider adding a
first class permission type, to avoid the ceremony of creating
forward/back functions, and having to remember the model layout for
Permissions.
Something like:
migrations.CreatePermission(app_label, permission_name)
Certainly, if we go the data migration path I'd go this way...
--
C
--
You received this message because you are subscribed to the Google Groups "Django
developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/0f67a5d7-dfa0-c31d-5f69-c9f0490dbf8f%40tinbrain.net.
For more options, visit https://groups.google.com/d/optout.