admin tweaks
This commit is contained in:
Родитель
94b92558eb
Коммит
c8eab13e25
|
@ -11,5 +11,7 @@ from .models import Group
|
|||
|
||||
class GroupAdmin(admin.ModelAdmin):
|
||||
raw_id_fields = ('users',)
|
||||
ordering = ('name',)
|
||||
list_display = ('name', 'rules')
|
||||
|
||||
admin.site.register(Group, GroupAdmin)
|
||||
|
|
|
@ -18,6 +18,8 @@ class AddonForm(forms.ModelForm):
|
|||
class AddonAdmin(admin.ModelAdmin):
|
||||
form = AddonForm
|
||||
raw_id_fields = ('users',)
|
||||
list_display = ('__unicode__', 'addontype', 'status', 'averagerating')
|
||||
list_filter = ('addontype', 'status')
|
||||
|
||||
fieldsets = (
|
||||
(None, {
|
||||
|
|
|
@ -110,6 +110,9 @@ class AddonType(amo.ModelBase):
|
|||
class Meta:
|
||||
db_table = 'addontypes'
|
||||
|
||||
def __unicode__(self):
|
||||
return unicode(self.name)
|
||||
|
||||
|
||||
class BlacklistedGuid(models.Model):
|
||||
|
||||
|
|
|
@ -22,10 +22,14 @@
|
|||
<li><a href="{{ url('admin:addons_blacklistedguid_changelist') }}">Banned GUIDs</a></li>
|
||||
<li><a href="{{ url('admin:addons_feature_changelist') }}">Featured Add-ons</a></li>
|
||||
<li><a href="{{ url('admin.flagged') }}">Flagged Add-ons</a></li>
|
||||
<li><a href="{{ url('admin:addons_addon_changelist') }}">Manage an Add-on</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="top">
|
||||
<a href="#" class="controller">Manage Users</a>
|
||||
<ul>
|
||||
<li><a href="{{ url('admin:access_group_changelist') }}">Configure Groups</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="top">
|
||||
<a href="#" class="controller">Site Settings</a>
|
||||
|
|
Загрузка…
Ссылка в новой задаче