Hey guys

I have a user who has a problem with his keyboard. When he's captured an 
expense from my form, it seems like his key was sticking and it created 
~50x objects in the database. Is there a post validation function I can use 
to raise an error with this type of problem?  Obviously *fix the keyboard* 
is a good idea but I'd prefer the server to throw an error and not create 
50 or 100 records that I have to manually delete from the shell.

Gunicorn log file readout is below. I'm not certain what the "Ignoring 
EPIPE" is referring in this context as I'm not sure where the piping is but 
I do note that the id numbers for the log [11242] and [11243] are repeated 
which makes me suspect its catching some type of exception but also 
creating the object in the database. Hopefully the exception could stop the 
save() method, throw a 500 error and re-route to the previous page? I'm 
using a class based view which is also provided below.



[2019-09-16 13:09:36 +0200] [11242] [DEBUG] GET 
/finances/student/uuid-replace-1/finances/profile/
[2019-09-16 13:09:59 +0200] [11243] [DEBUG] GET 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:09 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:09 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:09 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:09 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:09 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:09 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:09 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:09 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:09 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:09 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:09 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:09 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:09 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:09 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:09 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:09 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:09 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:09 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:10 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:10 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:10 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:10 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:10 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:10 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:10 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:10 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:10 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:10 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:10 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:10 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:10 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:10 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:10 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:10 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:10 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:10 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:10 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:10 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:10 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:10 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:11 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:11 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:11 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:11 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:11 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:11 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:11 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:11 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:11 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:11 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:11 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:11 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:11 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:11 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:11 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:11 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:11 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:11 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:11 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:12 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:12 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:12 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:12 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:12 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:12 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:12 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:12 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:12 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:12 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:12 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:12 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:12 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:12 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:12 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:12 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:12 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:12 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:13 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:13 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:13 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:13 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:13 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:13 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:13 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:13 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:13 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:13 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:13 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:13 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:13 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:13 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:13 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:13 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:13 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:13 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:13 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:13 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:13 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:13 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:13 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:13 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:14 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:14 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:14 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:14 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:14 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:14 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:14 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:14 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:14 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:14 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:14 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:14 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:14 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:14 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:14 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:14 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:14 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:14 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:14 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:14 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:14 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:14 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:15 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:15 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:15 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:15 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:15 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:15 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:15 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:15 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:15 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:15 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:15 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:15 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:15 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:15 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:15 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:15 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:15 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:15 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:15 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:15 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:15 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:16 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:16 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:16 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:16 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:16 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:16 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:16 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:16 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:16 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:16 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:16 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:16 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:16 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:16 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:16 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:16 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:17 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:17 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:17 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:17 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:17 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:17 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:17 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:17 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:17 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:17 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:17 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:17 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:17 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:17 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:17 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:17 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:17 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:17 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:17 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:17 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:17 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:17 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:17 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:18 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:18 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:18 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:18 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:18 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:18 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:18 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:18 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:18 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:18 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:18 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:18 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:18 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:18 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:18 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:18 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:18 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:18 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:18 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:18 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:18 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:18 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:18 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:19 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:19 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:19 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:19 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:19 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:19 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:19 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:19 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:19 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:19 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:19 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:19 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:19 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:19 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:19 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:19 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:19 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:19 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:19 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:19 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:20 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:20 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:20 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:20 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:20 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:20 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:20 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:20 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:20 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:20 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:20 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:20 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:20 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:20 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:20 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:21 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:21 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:21 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:21 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:21 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:21 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:21 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:21 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:21 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:21 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:21 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:21 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:21 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:21 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:21 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:21 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:21 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:21 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:21 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:21 +0200] [11242] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:21 +0200] [11243] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:21 +0200] [11243] [DEBUG] Ignoring EPIPE
[2019-09-16 13:10:22 +0200] [11242] [DEBUG] POST 
/finances/uuid-replace-1/expense_student/uuid-replace-2/create/
[2019-09-16 13:10:22 +0200] [11243] [DEBUG] GET 
/finances/student/uuid-replace-1/finances/profile/



class ExpenseCreateFromStudentFinancesView(LoginRequiredMixin, CreateView):
    model = Expense
    form_class = ExpenseForm
    template_name = 'finances/expense/expense_create.html'
    pk_url_kwarg = 'expense_pk'


    def get_initial(self):
        return {'course_booking': CourseBooking.objects.get(id=self.kwargs.
get('course_booking_pk'))}


    def get_success_url(self):
        student = Student.objects.get(id=self.kwargs.get('student_pk'))
        return reverse('student_profile_finances', kwargs={'student_pk': 
student.pk})


Thanks VM!


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7887b68b-2b25-40b5-bb67-0d3113385226%40googlegroups.com.

Reply via email to