webkom / lego

Backend for abakus.no
https://lego.abakus.no
MIT License
52 stars 20 forks source link

Prevent error when anonymous user requests allergies #3601

Open itsisak opened 1 month ago

itsisak commented 1 month ago

Should fix this error in sentry

Difficult to test since anonymous users do not have access to the administrate pages, but this does not break correct functionality at least.

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 50.00000% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 89.08%. Comparing base (f05b31f) to head (732e411).

Files Patch % Lines
lego/apps/events/models.py 50.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #3601 +/- ## ========================================== - Coverage 89.09% 89.08% -0.01% ========================================== Files 681 681 Lines 21395 21397 +2 ========================================== + Hits 19061 19062 +1 - Misses 2334 2335 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.