summaryrefslogtreecommitdiffstats
path: root/sites/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'sites/models.py')
-rwxr-xr-xsites/models.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/sites/models.py b/sites/models.py
new file mode 100755
index 0000000..6680c91
--- /dev/null
+++ b/sites/models.py
@@ -0,0 +1,31 @@
+from django.db import models
+# Create your models here.
+from django.contrib import admin, auth
+from django.contrib.auth.models import User
+from django.contrib.sites.models import *
+from infopoint.sites.models import *
+from infopoint.flatpages.models import models
+from django.contrib.flatpages.models import FlatPage
+from django.contrib import databrowse
+from infopoint.agenda.models import Todo
+
+databrowse.site.register(Site)
+
+
+class SiteInline(admin.TabularInline):
+ model = Site
+#from infopoint.flatpages.models import Flatpages
+
+class FlatPageAdmin(admin.ModelAdmin):
+ #inlines = [SiteInline]
+ pass
+admin.site.register(FlatPage, FlatPageAdmin)
+
+
+class FlatPageInline(admin.TabularInline):
+ model = FlatPage
+#class SiteAdmin(admin.ModelAdmin):
+# inlines = [FlatPageInline]
+#admin.site.register(Site, SiteAdmin)
+
+