Created new models to replicate out of and split coord app

Moved helpers and views to their respective new apps
This commit is contained in:
st01765
2026-02-05 11:18:08 +11:00
parent ad4fd19cc7
commit b695dd8054
26 changed files with 1536 additions and 10 deletions
+15 -1
View File
@@ -1,3 +1,17 @@
from django.contrib.admin.views.decorators import staff_member_required
from django.http import HttpResponseRedirect
from django.shortcuts import render
# Create your views here.
from messaging.services.sms import SMSForm
@staff_member_required
def sms_message(request, queryset):
if request.method == 'POST':
form = SMSForm(request.POST)
if form.is_valid():
HttpResponseRedirect(request.get_full_path())
else:
form = SMSForm()
return render(request, 'admin/sms_form.html', context={'form': form, 'travellers': queryset})