Skip to content
Snippets Groups Projects
  1. Mar 14, 2022
    • Ernesto Rico Schmidt's avatar
      Format source with Black · 0ace09e7
      Ernesto Rico Schmidt authored
      0ace09e7
    • Ernesto Rico Schmidt's avatar
      Refactor and Clean-up Viewsets · 5c34d059
      Ernesto Rico Schmidt authored
      - Reorder the code inside the methods to fail fast on autorization,
      - Replace `int_or_none` with a more generic solution, and move to utils,
      - Add `get_values` and move `pk_and_slug` as `get_pk_and_slug` into utils,
      - Replace calls to static methos in models local queries,
      - Return meaningful status code while creating and updating resources,
      - Return `409` when creating or updating a schedule produces a conflict.
      5c34d059
  2. Mar 08, 2022
  3. Feb 28, 2022
  4. Feb 25, 2022
  5. Feb 23, 2022
  6. Feb 14, 2022
  7. Feb 10, 2022
  8. Jan 25, 2022
  9. Jan 24, 2022
  10. Jan 19, 2022
  11. Jan 18, 2022
  12. Jan 17, 2022
  13. Jan 14, 2022
  14. Jan 13, 2022
  15. Jan 12, 2022
  16. Nov 26, 2021
  17. Nov 19, 2021
  18. Nov 18, 2021
  19. Jul 16, 2021
  20. Apr 27, 2021
  21. Apr 26, 2021
  22. Dec 02, 2020
  23. Nov 24, 2020
  24. Nov 23, 2020
  25. Nov 21, 2020
    • Ernesto Rico Schmidt's avatar
      Clean-up code · a6af6efe
      Ernesto Rico Schmidt authored
      - Make `Host.is_editable`, `Show.is_editable`, `Note.is_editable`, and
        `Note.get_audio_url` static methods,
      - Make `Schedule.instantiate_upcoming`, `Schedule.generate_timeslots`,
        `Schedule.get_collisions`, `Schedule.generate_conflicts`,
        `Schedule.make_conflicts` and `Schedule.resolve_conflicts` static
        methods. Most of these methods do not belong here.
      - Fix signatures of methods for subclasses of `viewsets.ModelViewSet`
      - Fix doctrins for subclasses of `viewsets.ModelViewSet`
      - Fix comparisons with None (replace '==' and '!=' with 'is' and 'is not')
      Unverified
      a6af6efe
  26. Nov 20, 2020
  27. Oct 05, 2020
Loading