SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 9b7fbbd5 authored by Geert Kapteijns's avatar Geert Kapteijns
Browse files

Define THESIS_TYPES in ThesisLink model itself

This is recommended. Also give names like
MASTER_THESIS = 'MA' to avoid magic strings and allow for easy
reference, e.g. thesis.type = ThesisLink.MASTER_THESIS. This sort
of thing helps in maintainability of the codebase, since if we want
to change the abbreviation to 'MASTER' for some reason, we have it
defined in one place, and not in 100 places in the code.
parent f9f0bb2e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment