summaryrefslogtreecommitdiffstats
path: root/sites/models.py
blob: 6680c91de7d23291ade92b2d2a081f934c9d6bbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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)