Enhance the admin list page for Stream a bit.

- Legacy-Id: 3263
This commit is contained in:
Henrik Levkowetz 2011-07-27 16:41:36 +00:00
parent 804e7cb795
commit 2debf443ad
2 changed files with 6 additions and 2 deletions

View file

@ -11,6 +11,7 @@ class AnnotationTagInline(admin.TabularInline):
class IETFWorkflowAdmin(admin.ModelAdmin):
inlines = [StateInline, AnnotationTagInline]
admin.site.register(WGWorkflow, IETFWorkflowAdmin)
class StreamedIdAdmin(admin.ModelAdmin):
list_display = [ 'id', 'draft', 'stream', 'content_type', 'content_id', 'group', ]
@ -19,5 +20,6 @@ class StreamedIdAdmin(admin.ModelAdmin):
pass
admin.site.register(StreamedID, StreamedIdAdmin)
admin.site.register(WGWorkflow, IETFWorkflowAdmin)
admin.site.register(Stream, admin.ModelAdmin)
class StreamAdmin(admin.ModelAdmin):
list_display = ['name', 'with_groups', 'group_model', 'group_chair_model', 'workflow_link', ]
admin.site.register(Stream, StreamAdmin)

View file

@ -4,6 +4,7 @@ from django.db import models
from django.utils.translation import ugettext_lazy as _
from ietf.idtracker.models import PersonOrOrgInfo, InternetDraft
from ietf.utils.admin import admin_link
from workflows.models import Workflow, State, StateObjectRelation
from permissions.models import Permission
@ -146,6 +147,7 @@ class Stream(models.Model):
def __unicode__(self):
return u'%s stream' % self.name
workflow_link = admin_link('workflow')
class StreamedID(models.Model):