SciPost Code Repository

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

Set blank=False on domain field of ThesisLink

A blank domain throws an error in /theses/.
I've also installed factory_boy (pip install -r requirements.txt
to get it) and set up a ThesisLinkFactory and a unit tests that
tests whether ThesisLink validates for a blank domain field.

Not sure if this is exactly how you're supposed to validate
a model, but it's a start. First unit test of the project, whoohoo!
parent 9b7fbbd5
No related branches found
No related tags found
No related merge requests found
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