1. 04 Sep, 2016 2 commits
  2. 21 Feb, 2016 1 commit
    • 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
      28f60f62
  3. 14 Feb, 2016 1 commit
  4. 23 Nov, 2015 3 commits
  5. 21 Nov, 2015 1 commit
  6. 20 Nov, 2015 1 commit
  7. 10 Nov, 2015 3 commits
    • Vladimir Mencl's avatar
      parse_institution_xml: always print ERROR messages · 55e772bd
      Vladimir Mencl authored
      Change the ERROR write to an explicit reference to self.stderr.write - to
      always report an error message (and use stderr for doing so).
      55e772bd
    • Vladimir Mencl's avatar
      parse_institution_xml: change a print to write · e958c34c
      Vladimir Mencl authored
      Replace a leftover print with a call to the write reference (conditional on verbosity).
      e958c34c
    • Vladimir Mencl's avatar
      parse_institution_xml: pass write between methods · 525915ba
      Vladimir Mencl authored
      Recent changes to parse_intitution_xml (b0d86558) make log output go via write reference, conditional on verbosity settings.  However, this reference is defined in the handle method, but used in the parse_and_create method.
      
      This breaks the parse_institution_xml script, failing with:
      
        File "/djnro/edumanage/management/commands/parse_institution_xml.py", line 70, in parse_and_create
            write('Created inst %s\n' % institution_obj.pk)
        NameError: global name 'write' is not defined
      
      Fix this by explictly passing write from handle() to parse_and_create() as an additional argument.
      525915ba
  8. 30 Oct, 2015 8 commits
  9. 13 Oct, 2015 1 commit
  10. 07 Oct, 2015 4 commits
  11. 02 Oct, 2015 3 commits
  12. 30 Sep, 2015 1 commit
  13. 29 Sep, 2015 4 commits
  14. 28 Sep, 2015 1 commit
  15. 26 Jun, 2015 1 commit
  16. 25 Jun, 2015 1 commit
  17. 22 Jun, 2015 3 commits
  18. 29 Oct, 2014 1 commit
    • root's avatar
      use pip · 017e8975
      root authored
      017e8975