Skip to content

Commit

Permalink
fix: exclude csrfmiddlewaretoken in new ticket form data
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Oct 5, 2022
1 parent f982458 commit 96f76f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions uniticket/uni_ticket/views/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,7 @@ def post(self, request, structure_slug, category_slug, api=False):
TICKET_CREATE_BUTTON_NAME,
TICKET_COMPILED_BY_USER_NAME,
TICKET_COMPILED_CREATION_DATE,
'csrfmiddlewaretoken',
]
)

Expand All @@ -662,6 +663,7 @@ def post(self, request, structure_slug, category_slug, api=False):
for i in fields_to_pop:
if i in form_data:
form_data.pop(i)

# make a UUID based on the host ID and current time
code = uuid_code()

Expand Down

0 comments on commit 96f76f4

Please sign in to comment.