|
|
|
@ -1,26 +1,27 @@
|
|
|
|
|
from django.shortcuts import render, get_object_or_404, redirect
|
|
|
|
|
from datetime import timedelta
|
|
|
|
|
|
|
|
|
|
from django.contrib import messages
|
|
|
|
|
from django.contrib.auth.decorators import login_required
|
|
|
|
|
from django.utils import timezone
|
|
|
|
|
from django.contrib.auth.mixins import LoginRequiredMixin
|
|
|
|
|
from django.core.paginator import Paginator
|
|
|
|
|
from django.db import models, transaction
|
|
|
|
|
from django.db.models import Case, Count, ExpressionWrapper, F, Q, When
|
|
|
|
|
from django.db.models.fields import DateTimeField
|
|
|
|
|
from django.db.models import F, Count, Q, ExpressionWrapper, Case, When
|
|
|
|
|
from django.shortcuts import get_object_or_404, redirect, render
|
|
|
|
|
from django.utils import timezone
|
|
|
|
|
from django.views.generic import DetailView, ListView
|
|
|
|
|
from django.views.generic.edit import FormMixin
|
|
|
|
|
|
|
|
|
|
from .forms import BulkMessage, HelperMessage, HelperShift
|
|
|
|
|
from .models import (
|
|
|
|
|
ShiftRegistration,
|
|
|
|
|
Room,
|
|
|
|
|
Shift,
|
|
|
|
|
Helper,
|
|
|
|
|
Message,
|
|
|
|
|
IncomingMessage,
|
|
|
|
|
Message,
|
|
|
|
|
Room,
|
|
|
|
|
RoomViewToken,
|
|
|
|
|
Shift,
|
|
|
|
|
ShiftRegistration,
|
|
|
|
|
)
|
|
|
|
|
from django.views.generic import DetailView, ListView
|
|
|
|
|
from django.views.generic.edit import FormMixin
|
|
|
|
|
from django.contrib.auth.mixins import LoginRequiredMixin
|
|
|
|
|
from django.contrib import messages
|
|
|
|
|
from django.db import models, transaction
|
|
|
|
|
from django.core.paginator import Paginator
|
|
|
|
|
from .forms import BulkMessage, HelperShift, HelperMessage
|
|
|
|
|
from datetime import timedelta
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Create your views here.
|
|
|
|
|
|
|
|
|
|