Another variant:
# Add to conf.global_settings.py
...
AUTH_DEFAULT_PERMISSIONS = ('add', 'change', 'delete')
...
# And in db.models.options.py
@python_2_unicode_compatible
class Options(object):
...
def __init__(self, meta, app_label=None):
...
self.default_permissions = settings.AUTH_DEFAULT_PERMISSIONS
...
Nothing will change in the distribution. Not default. But will cover my
need.
среда, 8 июля 2015 г., 17:03:54 UTC+10 пользователь Florian Apolloner
написал:
>
>
> I don't, but the admin has to work with it if we make it a default
> permission, period.
>
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/dea7b4b1-1ffd-4903-885f-1779246ff732%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.