from django.contrib import admin

from . import models


class EmbeddedVideoAdmin(admin.ModelAdmin):
    fieldsets = (
        (None, {
            'fields': ('title', 'video', 'sites', ),
        }),

        # TODO: Refactor this into a fieldset_for(some_model) method so it can
        #       be reused in other apps.
        ('Author Information', {
            'fields': ('authors', 'authors_override', 'authors_extra'),
        }),
    )


admin.site.register(models.EmbeddedVideo, EmbeddedVideoAdmin)

from django.contrib import admin

from . import models


class EmbeddedVideoAdmin(admin.ModelAdmin):
    fieldsets = (
        (None, {
            'fields': ('title', 'summary', 'video', 'sites', ),
        }),

        # TODO: Refactor this into a fieldset_for(some_model) method so it can
        #       be reused in other apps.
        ('Author Information', {
            'fields': ('authors', 'authors_override', 'authors_extra'),
        }),
    )


admin.site.register(models.EmbeddedVideo, EmbeddedVideoAdmin)

make sure summary shows up in the admin