[Debconf-video-commits] r353 - package/branches/pycon09/src/debconfvideo/web/pyconvideo
benh at alioth.debian.org
benh at alioth.debian.org
Sat Mar 21 14:12:06 UTC 2009
Author: benh
Date: 2009-03-21 14:12:06 +0000 (Sat, 21 Mar 2009)
New Revision: 353
Added:
package/branches/pycon09/src/debconfvideo/web/pyconvideo/admin.py
Log:
An important piece of the admin interface I meant to commit earlier.
Added: package/branches/pycon09/src/debconfvideo/web/pyconvideo/admin.py
===================================================================
--- package/branches/pycon09/src/debconfvideo/web/pyconvideo/admin.py (rev 0)
+++ package/branches/pycon09/src/debconfvideo/web/pyconvideo/admin.py 2009-03-21 14:12:06 UTC (rev 353)
@@ -0,0 +1,7 @@
+from web.pyconvideo import models
+from django.contrib import admin
+
+for name in dir(models):
+ attr = getattr(models, name)
+ if isinstance(attr, type) and issubclass(attr, models.models.Model):
+ admin.site.register(attr)
More information about the Debconf-video-commits
mailing list