Commit f21167e8 authored by Serial Lab's avatar Serial Lab

added admin

parent 80a26642
from serialbox import models
from django.contrib import admin
from list_based_flavorpack.models import ListBasedRegion
from random_flavorpack.models import RandomizedRegion
class RegionInline(admin.StackedInline):
model = models.SequentialRegion
extra = 0
class ListBasedInline(admin.StackedInline):
model = ListBasedRegion
extra = 0
class RandomRegionInline(admin.StackedInline):
model = RandomizedRegion
extra = 0
class PoolAdmin(admin.ModelAdmin):
list_display = (
inlines = [RegionInline, ListBasedInline, RandomRegionInline]
def register_to_site(admin_site):
admin_site.register(models.Pool, PoolAdmin)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment