Wednesday, February 29, 2012

Doing more with the Django admin

Doing more with the Django admin: "
from django.contrib import admin
from more_with_admin.examples import models

class DocumentAdmin(admin.ModelAdmin):
pass

class CommentAdmin(admin.ModelAdmin):
pass

admin.site.register(models.Document, DocumentAdmin)
admin.site.register(models.Comment, CommentAdmin)
"

'via Blog this'