emencia / django-blog-lotus

A weblog application with Django.
https://django-blog-lotus.readthedocs.io/
MIT License
5 stars 1 forks source link

Make admin mode configurable from settings #33

Closed sveetch closed 2 years ago

sveetch commented 2 years ago

Admin mode context var and url argument name are set from here:

https://github.com/emencia/django-blog-lotus/blob/5f68f1e5d08b7cb34403ef14b3a72864639cc6a5/lotus/views/mixins.py#L26

However this should be configurable from settings to avoid possible conflict with other apps, since "admin" is a very common word.

There is also probably some few other code part elsewhere which may use directly "admin" word for "admin mode" feature, at least in the admin forms and tests.

sveetch commented 2 years ago

Done in 0.5.0-pre.2