Skip to content

Commit

Permalink
updated django 4.2.15 to 5.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
4-dash committed Aug 21, 2024
1 parent 84a9ace commit 8cae576
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
coverage==6.3.3
Django==4.2.15
Django==5.0.8
django-debug-toolbar==3.2.4
docutils==0.20.1
freezegun==1.2.2
Expand Down
2 changes: 1 addition & 1 deletion src/feedback/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def authenticate(self, request, user, current_user=None, reset=False):
class FSAccountBackend(RemoteUserBackend):
# Login wird automatisch über RemoteUserMiddleware bzw. RemoteUserBackend abgewickelt,
# hier muss nur noch der neue User konfiguriert werden.
def configure_user(self, request, user):
def configure_user(self, request, user, created=True):
user.email = user.username + '@d120.de'
user.is_staff = True
user.is_superuser = True
Expand Down
2 changes: 2 additions & 0 deletions src/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
# system time zone.
TIME_ZONE = 'Europe/Berlin'

USE_TZ = False # before django 5.0 USE_TZ was default False

# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'de-DE'
Expand Down

0 comments on commit 8cae576

Please sign in to comment.