mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
This method is used in the `changelist_view` to get the changelist form.
You may want to override this method to get a different form depending
on the user that makes the request. For example:
class MyConstanceAdmin(ConstanceAdmin):
def get_changelist_form(self, request):
if request.user.is_superuser:
return SuperuserForm:
else:
return super(MyConstanceAdmin, self).get_changelist_form(request)
|
||
|---|---|---|
| .. | ||
| backends | ||
| locale | ||
| management | ||
| templates/admin/constance | ||
| test | ||
| __init__.py | ||
| admin.py | ||
| apps.py | ||
| base.py | ||
| context_processors.py | ||
| settings.py | ||
| signals.py | ||
| utils.py | ||