from django.contrib import admin
from django.contrib.contenttypes import generic


from . import models


class SeriesNodeInline(generic.GenericTabularInline):
    model = models.SeriesNode


class SeriesAdmin(admin.ModelAdmin):
    model = models.Series

    inlines = [
        SeriesNodeInline,
    ]
    prepopulated_fields = {
        'slug': ('title', ),
    }


admin.site.register(models.Series, SeriesAdmin)

from django.contrib import admin

from . import models


class SeriesAdmin(admin.ModelAdmin):
    model = models.Series

    prepopulated_fields = {
        'slug': ('title', ),
    }


admin.site.register(models.Series, SeriesAdmin)

Remove all of the SeriesNode inline stuff (doesn't work yet)
Remove all of the SeriesNode inline stuff (doesn't work yet)
