aboutsummaryrefslogtreecommitdiffstats
path: root/archive/admin.py
diff options
context:
space:
mode:
authorWeitian LI <liweitianux@gmail.com>2014-04-28 13:34:41 +0800
committerWeitian LI <liweitianux@gmail.com>2014-04-28 13:34:41 +0800
commit650b6c5f48bccd2f79e2489ecd9df9157bac421a (patch)
treeab7fb7065a721dc1af2029c8dbf8021c1cbc2b27 /archive/admin.py
parent5af86ee6cbb4d9561c8f0a32d064f1ccd4e4b1cf (diff)
downloaddjango-skaschool-650b6c5f48bccd2f79e2489ecd9df9157bac421a.tar.bz2
* added app 'archive' to provides downloads
o models: Archive, ArchiveCategory o views: ArchiveView based on TemplateView o template: archive.html o sidebar: sidebar.js, sidebar.css
Diffstat (limited to 'archive/admin.py')
-rw-r--r--archive/admin.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/archive/admin.py b/archive/admin.py
new file mode 100644
index 0000000..9b1e665
--- /dev/null
+++ b/archive/admin.py
@@ -0,0 +1,11 @@
+# -*- coding: utf-8 -*-
+
+from django.contrib import admin
+
+from archive.models import Archive, ArchiveCategory
+
+
+## register to admin
+admin.site.register(Archive)
+admin.site.register(ArchiveCategory)
+