PyconUK / ironcage

A Django application for managing PyCon UK
1 stars 8 forks source link

User can end up with multiple tickets #54

Closed evildmp closed 7 years ago

evildmp commented 7 years ago
screenshot 2017-06-24 09 20 53
inglesp commented 7 years ago

Your user has ended up with two tickets, which the system assumes should never happen. This would explain why the links are missing on the page, as a call to user.tickets.get() blows up in a template, which is then ignored. (Why oh why does the Django template language swallow exceptions when DEBUG = False?)

I expect this is the cause of the 500 exception, although I can't be sure as we haven't set up logging properly yet. (Why oh why does Django not log exceptions to the console by default when DEBUG = False?)

The only way I can see for this to have happened is for you to have started two orders in parallel. We should enforce that a user can only have one ticket at the database level.

The bogus address is almost certainly a red herring here, so I'll rename the issue.

inglesp commented 7 years ago

Fixed through: