-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
43 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
...009_order_picked_up_order_picked_up_at.py → ...003_order_picked_up_order_picked_up_at.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from django.apps import AppConfig | ||
|
||
|
||
class StatusScreenConfig(AppConfig): | ||
"""Status Screen App Config.""" | ||
|
||
default_auto_field = "django.db.models.BigAutoField" | ||
name = "status_screen" |
Empty file.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from django.urls import path | ||
|
||
from status_screen import views | ||
|
||
urlpatterns = [ | ||
path("<shift:shift>/", views.StatusScreen.as_view(), name="status"), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from django.shortcuts import render | ||
from django.views.generic import TemplateView | ||
|
||
|
||
class StatusScreen(TemplateView): | ||
"""Status screen for a Shift.""" | ||
|
||
template_name = "status_screen/status_screen.html" | ||
|
||
def get(self, request, **kwargs): | ||
"""GET request for status screen view.""" | ||
shift = kwargs.get("shift") | ||
return render(request, self.template_name, {"shift": shift}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,7 @@ | |
"transactions", | ||
"orders", | ||
"silvasoft", | ||
"status_screen", | ||
"oauth2_provider", | ||
"corsheaders", | ||
"yivi", | ||
|
@@ -195,7 +196,8 @@ | |
), | ||
"VENUES_SEND_RESERVATION_REQUEST_EMAILS_TO": ( | ||
"[email protected], [email protected]", | ||
"Where to send venue reservation request notifications to (e-mail address), enter multiple addresses by using a comma (,)", | ||
"Where to send venue reservation request notifications to (e-mail address), enter multiple addresses by using " | ||
"a comma (,)", | ||
str, | ||
), | ||
"SHIFTS_DEFAULT_MAX_ORDERS_TOTAL": (70, "Default maximum number of orders per shift", int), | ||
|
@@ -282,4 +284,4 @@ | |
AGE_VERIFICATION_INSTITUTE_VALUE = "ru.nl" | ||
|
||
YIVI_SERVER_URL = os.environ.get("YIVI_SERVER_URL") | ||
YIVI_SERVER_TOKEN = os.environ.get("YIVI_SERVER_TOKEN") | ||
YIVI_SERVER_TOKEN = os.environ.get("YIVI_SERVER_TOKEN") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters