Changeset 3398d3a


Ignore:
Timestamp:
May 21, 2011, 2:29:57 AM (15 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage, test-hooks
Children:
062a126
Parents:
209218e
git-author:
Alex Dehnert <adehnert@…> (05/21/11 02:29:57)
git-committer:
Alex Dehnert <adehnert@…> (05/21/11 02:29:57)
Message:

Start using django-reversion

Location:
asadb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • asadb/groups/admin.py

    r59e8bf3 r3398d3a  
    11import groups.models
    22from django.contrib import admin
     3from reversion.admin import VersionAdmin
    34
    4 class GroupAdmin(admin.ModelAdmin):
     5class GroupAdmin(VersionAdmin):
    56    list_display = (
    67        'id',
  • asadb/settings.py

    r8669a34 r3398d3a  
    7272    'django.contrib.auth.middleware.AuthenticationMiddleware',
    7373    'django.middleware.transaction.TransactionMiddleware',
     74    'reversion.middleware.RevisionMiddleware',
    7475]
    7576
     
    99100    'django.contrib.sessions',
    100101    'django.contrib.sites',
     102    'reversion',
    101103    'south',
    102104    'groups',
Note: See TracChangeset for help on using the changeset viewer.