1. 27 May, 2015 1 commit
  2. 03 May, 2015 1 commit
  3. 07 May, 2014 1 commit
  4. 23 Apr, 2014 1 commit
    • Jeremy Kerr's avatar
      Fix django-1.6 incompatibilities · 628a57c2
      Jeremy Kerr authored
      
      
      We're seeing a couple of final quirks running the testsuite on django
      1.6:
      
        Traceback (most recent call last):
          File "patchwork/apps/patchwork/tests/notifications.py", line 182, in testNotificationEscaping
            errors = send_notifications()
          File "patchwork/apps/patchwork/utils.py", line 227, in send_notifications
            delete_notifications()
          File "patchwork/apps/patchwork/utils.py", line 197, in delete_notifications
            pk__in = notifications).delete()
          File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py", line 163, in filter
            return self.get_queryset().filter(*args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 590, in filter
            return self._filter_or_exclude(False, *args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 608, in _filter_or_exclude
            clone.query.add_q(Q(*args, **kwargs))
          File "/usr/lib/python2.7/dist-packages/django/db/models/sql/query.py", line 1198, in add_q
            clause = self._add_q(where_part, used_aliases)
          File "/usr/lib/python2.7/dist-packages/django/db/models/sql/query.py", line 1232, in _add_q
            current_negated=current_negated)
          File "/usr/lib/python2.7/dist-packages/django/db/models/sql/query.py", line 1122, in build_filter
            lookup_type, value)
          File "/usr/lib/python2.7/dist-packages/django/db/models/fields/related.py", line 1107, in get_lookup_constraint
            values = [get_normalized_value(value) for value in raw_value]
          File "/usr/lib/python2.7/dist-packages/django/db/models/fields/related.py", line 1084, in get_normalized_value
            value_list.append(getattr(value, source.attname))
        AttributeError: 'PatchChangeNotification' object has no attribute 'id'
      
      - we're specifying our own pk here, so the PatchChangeNotification has
      no id attribute; it looks like the pk__in syntax is expecting IDs.
      
      We also need a default value for BooleanField, as we're getting
      integrity errors when creating rows with no explicit send_notifications
      set.
      Signed-off-by: default avatarJeremy Kerr <jk@ozlabs.org>
      628a57c2
  5. 22 Apr, 2014 2 commits
  6. 10 Jun, 2013 2 commits
  7. 14 May, 2013 1 commit
  8. 20 Apr, 2013 1 commit
    • Jeremy Kerr's avatar
      bundles: Remove separate public bundle views · 5d0140ef
      Jeremy Kerr authored
      
      
      Having two views for bundles (public and non-public) can cause confusion
      when bundle owners want to share a URL; it's not obvious that the
      private URL isn't shareable.
      
      This change removes the private URLs, and puts all bundles under the
      /bundle/<username>/<bundlename>/ URL space. For non-public bundles, this
      will just 404 for non-owners.
      Signed-off-by: default avatarJeremy Kerr <jk@ozlabs.org>
      5d0140ef
  9. 15 Nov, 2012 1 commit
  10. 04 May, 2012 1 commit
  11. 30 Apr, 2012 1 commit
  12. 19 Sep, 2011 1 commit
    • Jeremy Kerr's avatar
      models: Update Person & UserProfile object whenever User is saved · 4bc2c34d
      Jeremy Kerr authored
      
      
      Currently, UserProfiles are only saved on creation of the User object,
      before the first_name and last_name attributes are set. This means that
      we fallback to using the User.username value as the new Person.name.
      
      This change modifies User's post-save signal to always update the Person
      object, both on creation and updates. This means we get the proper name
      appearing on Person instances.
      Signed-off-by: default avatarJeremy Kerr <jk@ozlabs.org>
      4bc2c34d
  13. 14 Apr, 2011 7 commits
  14. 30 Mar, 2011 2 commits
  15. 15 Mar, 2011 1 commit
  16. 11 Feb, 2011 2 commits
  17. 09 Nov, 2010 1 commit
  18. 01 Nov, 2010 1 commit
  19. 23 Oct, 2009 1 commit
  20. 30 Sep, 2009 1 commit
  21. 18 Sep, 2009 1 commit
  22. 08 Jul, 2009 1 commit
  23. 09 Jun, 2009 1 commit
  24. 14 Feb, 2009 1 commit
  25. 12 Feb, 2009 2 commits
  26. 08 Feb, 2009 1 commit
  27. 29 Jan, 2009 1 commit
  28. 27 Jan, 2009 1 commit
  29. 29 Oct, 2008 1 commit