Skip to content
Snippets Groups Projects
  1. Jul 13, 2023
  2. Jul 10, 2023
  3. Jul 04, 2023
  4. Jul 03, 2023
  5. Jun 29, 2023
  6. Jun 27, 2023
  7. Jun 25, 2023
    • James Vasile's avatar
      Read WAGTAILADMIN_BASE_URL from env (#3451) · 27ca6288
      James Vasile authored
      base.py does not read WAGTAILADMIN_BASE_URL from the environment. This
      patch addresses that.
      
      Currently, base.py sets WAGTAILADMIN_BASE_URL only if PRIMARY_HOST is
      set. The code is:
      
      ```
      WAGTAILADMIN_BASE_URL = env.str("WAGTAILADMIN_BASE_URL", None) or f'https://{PRIMARY_HOST}' if PRIMARY_HOST else None
      ```
      
      Python interprets that at as "if PRIMARY_HOST is set, then set to
      WAGTAILADMIN_BASE_URL, but if PRIMARY_HOST is not set, then set to
      None." It essentially implies parenthese as below:
      
      ```
      WAGTAILADMIN_BASE_URL = (env.str("WAGTAILADMIN_BASE_URL", None) or f'https://{PRIMARY_HOST}') if PRIMARY_HOST else None
      ```
      
      But what I think we actually want is "set it to WAGTAILADMIN_BASE_URL if
      that has been set in the env, then fallback to PRIMARY_HOST, then
      fallback to None. We can do that by putting explicit parens around the
      part following 'or':
      
      ```
      WAGTAILADMIN_BASE_URL = env.str("WAGTAILADMIN_BASE_URL", None) or (f'https://{PRIMARY_HOST}' if PRIMARY_HOST else None)
      ```
      
      This patch puts those explicit parens in.
      Unverified
      27ca6288
  8. Jun 23, 2023
  9. Jun 20, 2023
  10. Jun 15, 2023
  11. Jun 13, 2023
  12. Jun 12, 2023
  13. Jun 08, 2023
  14. May 30, 2023
  15. May 22, 2023
  16. May 19, 2023
  17. May 18, 2023
  18. May 13, 2023
  19. May 12, 2023
  20. May 09, 2023
    • Saurabh Kumar's avatar
      Upgrade Wagtail to 4.2 (#3045) · f2cc2cb2
      Saurabh Kumar authored
      Fixes #3018
      
      - Update requirements - `wagtail` and `wagtail-cache`
      - Update `BaseSetting` to `BaseSiteSettings`
      - Fix Category StreamBlock at hypha/apply/categories/blocks.py
      - Add migration changes
      - Add `wagtail_reference_index_ignore = True` to models (See [this
      issue](https://github.com/wagtail/wagtail/issues/9731
      
      ) on wagtail for
      more info)
      - Use checkboxes when selecting reviewers for a Round and a Lab
      - Update `ReadOnlyPanel` to use `render_html()` method instead of
      `render_as_object()`
      
      ---------
      
      Co-authored-by: default avatarFredrik Jonsson <frjo@xdeb.org>
      Unverified
      f2cc2cb2
  21. May 04, 2023
  22. May 03, 2023
  23. May 02, 2023
  24. Apr 30, 2023
  25. Apr 28, 2023
Loading