SHARE
TWEET

Django admin.py

a guest Jun 22nd, 2013 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
Top