Skip to content

Commit 2d1f1bb

Browse files
committed
Remove django guardian from admin
1 parent c7db3d2 commit 2d1f1bb

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

readthedocs/builds/admin.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""Django admin interface for `~builds.models.Build` and related models."""
22

33
from django.contrib import admin, messages
4-
from guardian.admin import GuardedModelAdmin
54
from polymorphic.admin import (
65
PolymorphicChildModelAdmin,
76
PolymorphicParentModelAdmin,
@@ -56,7 +55,8 @@ def version_name(self, obj):
5655
return obj.version.verbose_name
5756

5857

59-
class VersionAdmin(GuardedModelAdmin):
58+
class VersionAdmin(admin.ModelAdmin):
59+
6060
list_display = (
6161
'slug',
6262
'type',

readthedocs/projects/admin.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
# -*- coding: utf-8 -*-
2-
31
"""Django administration interface for `projects.models`."""
42

53
from django.contrib import admin, messages
64
from django.contrib.admin.actions import delete_selected
75
from django.utils.translation import ugettext_lazy as _
8-
from guardian.admin import GuardedModelAdmin
96

107
from readthedocs.builds.models import Version
118
from readthedocs.core.models import UserProfile
@@ -127,7 +124,7 @@ def queryset(self, request, queryset):
127124
return queryset
128125

129126

130-
class ProjectAdmin(GuardedModelAdmin):
127+
class ProjectAdmin(admin.ModelAdmin):
131128

132129
"""Project model admin view."""
133130

0 commit comments

Comments
 (0)