Commits

Lukasz Balcerzak committed 9a26fd6

Updated admin for new django-guardian version

Comments (0)

Files changed (2)

projector/admin.py

 from django.contrib import admin
 from django.utils.translation import ugettext as _
 
-from projector.models import Status, Task, Priority,\
-    Project, ProjectCategory, TaskType, Milestone, Component,\
-    TaskRevision
-from projector.models import Membership, Team
+from guardian.admin import GuardedModelAdmin
+
+from projector.models import Component
+from projector.models import Membership
+from projector.models import Milestone
+from projector.models import Priority
+from projector.models import Project
+from projector.models import ProjectCategory
+from projector.models import Status
+from projector.models import Task
+from projector.models import TaskType
+from projector.models import TaskRevision
+from projector.models import Team
 
 from richtemplates.forms import LimitingModelForm
 
     model = Priority
     extra = 1
 
-class ProjectAdmin(admin.ModelAdmin):
+class ProjectAdmin(GuardedModelAdmin):
     list_display = ('id', 'name', 'category', 'home_page_url', 'is_active',
         'public', 'author', 'created_at', 'outdated')
     list_display_links = ('name',)
 django-celery-email==0.1.1
 django-extensions==0.5
 django-gravatar==0.1.0
-django-guardian==0.1.0
+-e git+git://github.com/lukaszb/django-guardian.git#egg=django-guardian
 django-keyedcache==1.4-1
 django-filter==0.5.3
 django-native-tags==0.5