SciPost Code Repository

Skip to content
Snippets Groups Projects
  1. Dec 14, 2016
    • Geert Kapteijns's avatar
      Set blank=False on domain field of ThesisLink · de1087c0
      Geert Kapteijns authored
      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!
      de1087c0
    • Geert Kapteijns's avatar
      Define THESIS_TYPES in ThesisLink model itself · 9b7fbbd5
      Geert Kapteijns authored
      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.
      9b7fbbd5
    • Geert Kapteijns's avatar
      Make PEP8 improvements · 9f505220
      Geert Kapteijns authored
      9f505220
  2. Dec 12, 2016
  3. Nov 26, 2016
  4. Nov 25, 2016
  5. Aug 11, 2016
  6. May 29, 2016
  7. Apr 22, 2016
  8. Apr 17, 2016
  9. Apr 15, 2016
  10. Apr 12, 2016
  11. Apr 01, 2016
  12. Mar 28, 2016
  13. Mar 26, 2016
  14. Mar 20, 2016
  15. Mar 19, 2016
  16. Feb 27, 2016
  17. Feb 07, 2016
  18. Feb 04, 2016
Loading