Update for BI changes in django-reversion

This commit is contained in:
Patrick Altman 2016-02-27 16:38:27 -06:00
parent efe413a837
commit 1ab7a30435
3 changed files with 4 additions and 5 deletions

View file

@ -13,9 +13,8 @@ from django.contrib.auth.models import User
from django.core.exceptions import ObjectDoesNotExist from django.core.exceptions import ObjectDoesNotExist
from django.core.exceptions import ValidationError from django.core.exceptions import ValidationError
import reversion
from model_utils.managers import InheritanceManager from model_utils.managers import InheritanceManager
from reversion import revisions as reversion
from symposion.markdown_parser import parse from symposion.markdown_parser import parse
from symposion.conference.models import Section from symposion.conference.models import Section

View file

@ -1,6 +1,6 @@
from django.contrib import admin from django.contrib import admin
import reversion from reversion.admin import VersionAdmin
from symposion.teams.models import Team, Membership from symposion.teams.models import Team, Membership
@ -8,7 +8,7 @@ admin.site.register(Team,
prepopulated_fields={"slug": ("name",)}) prepopulated_fields={"slug": ("name",)})
class MembershipAdmin(reversion.VersionAdmin): class MembershipAdmin(VersionAdmin):
list_display = ["team", "user", "state"] list_display = ["team", "user", "state"]
list_filter = ["team"] list_filter = ["team"]
search_fields = ["user__username"] search_fields = ["user__username"]

View file

@ -8,7 +8,7 @@ from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.models import Permission, User from django.contrib.auth.models import Permission, User
import reversion from reversion import revisions as reversion
TEAM_ACCESS_CHOICES = [ TEAM_ACCESS_CHOICES = [