from django.contrib import admin

# Register your models here.
from .models import Video, Category

class VideoAdmin(admin.ModelAdmin):
    list_display = ["__unicode__", "slug"]
    fields = ['title', 'embed_code', 'share_message',
              'slug', 'active', 'featured',
              'free_preview', 'category']
    prepopulated_fields = {'slug': ['title']}
    class Meta:
        model = Video

admin.site.register(Video, VideoAdmin)

admin.site.register(Category)

