mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-23 01:30:24 +00:00
Dynamic Django settings.
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)
|
||
|---|---|---|
| .github | ||
| .tx | ||
| constance | ||
| docs | ||
| example | ||
| tests | ||
| .coveragerc | ||
| .gitignore | ||
| .travis.yml | ||
| AUTHORS | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| MANIFEST.in | ||
| README.rst | ||
| setup.cfg | ||
| setup.py | ||
| tox.ini | ||
Constance - Dynamic Django settings
===================================
.. image:: https://secure.travis-ci.org/jazzband/django-constance.svg
:alt: Build Status
:target: http://travis-ci.org/jazzband/django-constance
.. image:: https://jazzband.co/static/img/badge.svg
:alt: Jazzband
:target: https://jazzband.co/
A Django app for storing dynamic settings in pluggable backends (Redis and
Django model backend built in) with an integration with the Django admin app.
For more information see the documentation at:
https://django-constance.readthedocs.io/
If you have questions or have trouble using the app please file a bug report
at:
https://github.com/jazzband/django-constance/issues