Fix all known remaining compatibility issues with Django 1.7+.
Review Request #7423 — Created June 13, 2015 and submitted — Latest diff uploaded
This updates djblets.cache, djblets.datagrid, and djblets.gravatar to be compatible with newer versions of Django. These include pulling in some backwards-compatibility functions and updating to use the proper APIs. In the case of datagrids, the profile-related code has finally been removed. I've changed the logic to no longer assume the existence of User.get_profile(), and instead to allow subclasses to override a function that returns some object (a profile model, or something else) for use in data storage.
All unit tests pass on Django 1.6 and 1.8.
Diff Revision 2
This is not the most recent revision of the diff. The latest diff is revision 4. See what's changed.
orig
1
2
3
4
djblets/cache/backend_compat.py |
---|
djblets/datagrid/grids.py |
---|
djblets/gravatars/templatetags/tests.py |
---|
djblets/util/compat/django/core/cache.py |
---|