Posted By

Affix on 01/14/11


Tagged

django


Versions (?)

admin.py


 / Published in: Python
 

URL: http://affix.me

  1. from django.contrib import admin
  2. from blog.blogsys.models import *
  3.  
  4. class category_admin(admin.ModelAdmin):
  5. pass
  6.  
  7. class post_admin(admin.ModelAdmin):
  8. pass
  9.  
  10. class comment_admin(admin.ModelAdmin):
  11. pass
  12.  
  13. admin.site.register(Category, category_admin)
  14. admin.site.register(Post, post_admin)
  15. admin.site.register(Comment, comment_admin)

Report this snippet  

You need to login to post a comment.