SciPost Code Repository

Skip to content
Snippets Groups Projects
  1. Feb 01, 2017
  2. Jan 31, 2017
  3. Jan 30, 2017
    • Geert Kapteijns's avatar
      Add two tests for thesis vetting. · 2fd40d4a
      Geert Kapteijns authored
      Theses that are accepted are vetted by the correct contributor.
      Mails are not yet sent. Thesis is not yet deleted when refused.
      2fd40d4a
    • Geert Kapteijns's avatar
      Change Thesis Link vetting · 18ec0f36
      Geert Kapteijns authored
      Work in progress. All unvetted theses are now listed at
      theses/unvetted_thesislinks. Vetting editors click on
      a thesis link to vet, and are redirected to
      theses/vet_thesislink/<id>, where they can change fields of a thesis
      link.
      
      theses/vet_thesislink/<id> is now a regular update view. It does not have
      mail capacity, or refusal reasons, etc. I will work on that next.
      18ec0f36
    • Geert Kapteijns's avatar
      c5b384fe
  4. Jan 29, 2017
  5. Jan 15, 2017
  6. Dec 20, 2016
  7. Dec 19, 2016
  8. Dec 16, 2016
  9. Dec 15, 2016
  10. 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
      Separate theses/tests.py into three files · f9f0bb2e
      Geert Kapteijns authored
      test_forms.py, test_models.py, test_views.py, as per
      recommendation of the two scoops book.
      f9f0bb2e
    • Geert Kapteijns's avatar
      Make PEP8 improvements · 9f505220
      Geert Kapteijns authored
      9f505220
  11. Dec 13, 2016
  12. Dec 12, 2016
  13. Dec 05, 2016
  14. Nov 26, 2016
  15. Nov 25, 2016
  16. Nov 09, 2016
  17. Aug 15, 2016
  18. Aug 11, 2016
Loading