1. 22 Nov, 2016 2 commits
  2. 03 Oct, 2016 1 commit
  3. 02 Oct, 2016 2 commits
  4. 26 Sep, 2016 2 commits
  5. 14 Sep, 2016 6 commits
  6. 09 Sep, 2016 1 commit
    • Vladimir Mencl's avatar
      AllServicePoints: fix MultipleObjectsReturned err · 3f929377
      Vladimir Mencl authored
      The get_all_services() breaks with unhandled exception MultipleObjectsReturned
      when there are multiple names (for either Institution or Service Location) with
      the selected language.
      And, this is permitted in the model, and we have users who create such DB state.
      Fix this by using filter(lang=...) instead of get(lang=...)
      And wrap the handling this for both org_name and loc_name in a single generic
      function - taking a
      django.contrib.contenttypes.fields.GenericRelatedObjectManager reference,
      language, default_language and default_value.
      This also removes the exception handling clutter from get_all_services().
  7. 08 Sep, 2016 8 commits
  8. 05 Sep, 2016 6 commits
  9. 30 Aug, 2016 1 commit
    • Vladimir Mencl's avatar
      AllServicePoints: fix JSON export missing data · 3a60a4c0
      Vladimir Mencl authored
      The get_all_services() view is missing the 'name' key from the exported JSON entries.
      This got (presumably accidentally) introduced in 7f1f9f3b.
      The 'name' now gets exported only if the 'inst' export threw an exception.
      Fix the export for 'inst' and 'name' keys to consistently try the current
      language, then 'en', then set the value to 'unknown'
  10. 04 Sep, 2016 4 commits
  11. 22 Feb, 2016 2 commits
  12. 21 Feb, 2016 4 commits
    • Vladimir Mencl's avatar
      PIP: add requirements-optional.txt · b8e69eb7
      Vladimir Mencl authored
      As per discussion in #10:
      * Make PyYAML import floating in 3.x (without pinning to 3.0.10)
      * Move Mako import to new file requirements-optional.txt
      * Update docs/installation/requirements.md to refer to requirements-optional.txt
    • Vladimir Mencl's avatar
      Templates: servers_edit: add missing </div> · 6bd36aca
      Vladimir Mencl authored
      A missing </div> was at times causing the footer to go out of place and cover
      the form contents.
    • Vladimir Mencl's avatar
    • Vladimir Mencl's avatar
      South migrations: improve #4 PostgreSQL workaround · 28f60f62
      Vladimir Mencl authored
      The original fix to the PostgreSQL issue with south migration 0022 did correctly change the field type, but did not add the Foreign Key constraint.
      Improve the workaround 9a2924d5 by also adding the foreign key constraint.
      For databases created with the original workaround, the foreign key constraint can be added manually with:
          ALTER TABLE edumanage_instrealmmon ADD CONSTRAINT "edumanage_i_realm_id_24cc89d4be4145e5_fk_edumanage_instrealm_id" FOREIGN KEY (realm_id) REFERENCES edumanage_instrealm(id) DEFERRABLE INITIALLY DEFERRED;
      Note that not having the constraint in does not directly break anything, but
      could lead to corrupt databases and the database structure is reported
      differently with:
          ./manage.py inspectdb
  13. 18 Feb, 2016 1 commit