Skip to content

Commit

Permalink
Add Settings object initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Pancham1603 committed Dec 11, 2023
1 parent 3acdb7f commit 7411b65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/nightpass/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from datetime import datetime, date, timedelta


Settings = Settings.objects.first()

@login_required
def campus_resources_home(request):
Expand Down
1 change: 1 addition & 0 deletions apps/users/management/commands/check_defaulters.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from datetime import date, timedelta, datetime, time
from django.utils import timezone

Settings = Settings.objects.first()

def check_defaulters():
previous_day_nightpasses = NightPass.objects.filter(date=date.today()-timedelta(days=1))
Expand Down

0 comments on commit 7411b65

Please sign in to comment.