mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 20:09:25 +00:00
Move core auth mixins to their own file
This commit is contained in:
@ -155,13 +155,12 @@ TEMPLATES = [
|
||||
"add_attr": "core.templatetags.renderer.add_attr",
|
||||
},
|
||||
"globals": {
|
||||
"can_edit_prop": "core.views.can_edit_prop",
|
||||
"can_edit": "core.views.can_edit",
|
||||
"can_view": "core.views.can_view",
|
||||
"can_edit_prop": "core.auth.mixins.can_edit_prop",
|
||||
"can_edit": "core.auth.mixins.can_edit",
|
||||
"can_view": "core.auth.mixins.can_view",
|
||||
"settings": "sith.settings",
|
||||
"Launderette": "launderette.models.Launderette",
|
||||
"Counter": "counter.models.Counter",
|
||||
"ProductType": "counter.models.ProductType",
|
||||
"timezone": "django.utils.timezone",
|
||||
"get_sith": "com.views.sith",
|
||||
"get_language": "django.utils.translation.get_language",
|
||||
@ -292,7 +291,7 @@ STORAGES = {
|
||||
# Auth configuration
|
||||
AUTH_USER_MODEL = "core.User"
|
||||
AUTH_ANONYMOUS_MODEL = "core.models.AnonymousUser"
|
||||
AUTHENTICATION_BACKENDS = ["core.auth_backends.SithModelBackend"]
|
||||
AUTHENTICATION_BACKENDS = ["core.auth.backends.SithModelBackend"]
|
||||
LOGIN_URL = "/login"
|
||||
LOGOUT_URL = "/logout"
|
||||
LOGIN_REDIRECT_URL = "/"
|
||||
|
Reference in New Issue
Block a user