Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing section in assignment causes home page to crash #41

Open
struan opened this issue Feb 21, 2023 · 0 comments
Open

missing section in assignment causes home page to crash #41

struan opened this issue Feb 21, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@struan
Copy link
Member

struan commented Feb 21, 2023

If a user has an assignment that only has an authority then the assigned home page throws a 500 error:

AttributeError at /
'NoneType' object has no attribute 'title'

...

File "[crowdsourcer/views.py](http://marking.councilclimatescorecards.uk/ceuk-marking/crowdsourcer/views.py)", line 77, in get_context_data
    assignment.section.title,
@struan struan added the bug Something isn't working label Feb 21, 2023
@struan struan self-assigned this Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant