DeepMicroscopy/Exact

Exception when last action image was deleted

maubreville opened this issue · 1 comments

When the image shown in last_action was deleted, it is no longer possible to use exact, since there is an error immediately after login:

django.urls.exceptions.NoReverseMatch: Reverse for 'team' with arguments '('',)' not found. 1 pattern(s) tried: ['users/team/(\d+)/$']

Most likely, the team of the image can no longer be looked up, which causes the error.

Fixed:

Cascade on delete was not set

eaa4c0e