Now with edits, delete confirmations
- and also a better alignment on actions - and konami code that works before login
This commit is contained in:
@@ -30,7 +30,6 @@ def auth_only(f):
|
||||
def __f(request):
|
||||
# check that email is valid
|
||||
# exp?
|
||||
print(request.META, file=sys.stderr)
|
||||
if 'user_data' not in request.session:
|
||||
raise PermissionDenied('Not logged in')
|
||||
email = request.session['user_data']['email']
|
||||
@@ -57,6 +56,7 @@ def get_list(request):
|
||||
'id': x.id,
|
||||
'title': x.title,
|
||||
'category': x.category.name,
|
||||
'category_id': x.category.id,
|
||||
'prototempalte': x.category.prototempalte.name,
|
||||
'landscape': x.category.landscape,
|
||||
'designation': x.designation,
|
||||
|
@@ -29,6 +29,7 @@ urlpatterns = [
|
||||
path('generate', tikette.views.generate),
|
||||
path('newtikette', tikette.views.newtikette),
|
||||
path('deletetikette', tikette.views.deletetikette),
|
||||
path('updatetikette', tikette.views.newtikette), # yes, we use newtikette
|
||||
path('signin', tikette.views.signin),
|
||||
path('signout', tikette.views.signout),
|
||||
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
|
Reference in New Issue
Block a user