Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Django admin.py

By: a guest on Jun 22nd, 2013  |  syntax: Python  |  size: 0.33 KB  |  views: 64  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. from django.contrib import admin
  2. from galcon.models import Player, Group, Section, Subsection, Thread, Message, Post, Pm, Request
  3.  
  4. included_models = [Player, Group, Section, Subsection, Thread, Message, Post,
  5.                    Pm, Request]
  6.  
  7. for model in included_models:
  8.     admin.site.register(model)
  9. admin.site.register(Section)