Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
Add timezone support
Browse files Browse the repository at this point in the history
  • Loading branch information
schaenzer committed Dec 29, 2021
1 parent ca4f829 commit 5ec87d6
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@
"django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.common.BrokenLinkEmailsMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
"hafenmeister.utils.middleware.TimezoneMiddleware"
]

# STATIC
Expand Down
2 changes: 1 addition & 1 deletion app/hafenmeister/users/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class UserAdmin(auth_admin.UserAdmin):
form = UserChangeForm
add_form = UserCreationForm
fieldsets = (
(None, {"fields": ("email", "password")}),
(None, {"fields": ("email", "password", "timezone")}),
(_("Personal info"), {"fields": ("name",)}),
(
_("Permissions"),
Expand Down

0 comments on commit 5ec87d6

Please sign in to comment.