from django.contrib import admin
from .models import *


# Register your models here.


class TextAdmin(admin.ModelAdmin):
    fieldsets = [(None, {'fields': ['headline', 'text', 'slug']})]
    prepopulated_fields = {'slug': ('headline',)}


class MediaAdmin(admin.ModelAdmin):
    fieldsets = [(None, {'fields': ['title', 'url', 'caption', 'credit', 'thumbnail', 'slug']})]
    prepopulated_fields = {'slug': ('title',)}


class TimelineAdmin(admin.ModelAdmin):
    fieldsets = [(None, {'fields': ['title', 'slug', 'text', 'media', 'published', 'options_preset']}), ]
    prepopulated_fields = {'slug': ('title',)}


class EventAdmin(admin.ModelAdmin):
    fieldsets = [(None, {'fields': ['title', 'slug', 'start_date', 'end_date', 'timeline', 'media', 'text']})]
    list_display = ('title', 'start_date', 'end_date')
    prepopulated_fields = {'slug': ('title',)}
    search_fields = ['title', 'start_date', 'end_date']


class OptionsPresetAdmin(admin.ModelAdmin):
    fieldsets = [('Options', {'fields': [
        'preset_title',
        'script_path',
        'height',
        'width',
        'scale_factor',
        'layout',
        'timenav_position',
        'optimal_tick_width',
        'base_class',
        'timenav_height',
        'timenav_height_percentage',
        'timenav_height_min',
        'marker_height_min',
        'marker_width_min',
        'marker_padding',
        'start_at_slide',
        'menubar_height',
        'skinny_size',
        'relative_date',
        'use_bc',
        'duration',
        'dragging',
        'trackResize',
        'map_type',
        'slide_padding_lr',
        'slide_default_fade',
        'api_key_flickr',
        'language',
    ]})]


admin.site.register(Timeline, TimelineAdmin)
admin.site.register(Media, MediaAdmin)
admin.site.register(Text, TextAdmin)
admin.site.register(Event, EventAdmin)
admin.site.register(OptionsPreset, OptionsPresetAdmin)

b45eba5537eb3c70f2091b8cb16894eda7b06d46
<mask token>


class TextAdmin(admin.ModelAdmin):
    <mask token>
    <mask token>


class MediaAdmin(admin.ModelAdmin):
    fieldsets = [(None, {'fields': ['title', 'url', 'caption', 'credit',
        'thumbnail', 'slug']})]
    prepopulated_fields = {'slug': ('title',)}


class TimelineAdmin(admin.ModelAdmin):
    fieldsets = [(None, {'fields': ['title', 'slug', 'text', 'media',
        'published', 'options_preset']})]
    prepopulated_fields = {'slug': ('title',)}


class EventAdmin(admin.ModelAdmin):
    fieldsets = [(None, {'fields': ['title', 'slug', 'start_date',
        'end_date', 'timeline', 'media', 'text']})]
    list_display = 'title', 'start_date', 'end_date'
    prepopulated_fields = {'slug': ('title',)}
    search_fields = ['title', 'start_date', 'end_date']


class OptionsPresetAdmin(admin.ModelAdmin):
    fieldsets = [('Options', {'fields': ['preset_title', 'script_path',
        'height', 'width', 'scale_factor', 'layout', 'timenav_position',
        'optimal_tick_width', 'base_class', 'timenav_height',
        'timenav_height_percentage', 'timenav_height_min',
        'marker_height_min', 'marker_width_min', 'marker_padding',
        'start_at_slide', 'menubar_height', 'skinny_size', 'relative_date',
        'use_bc', 'duration', 'dragging', 'trackResize', 'map_type',
        'slide_padding_lr', 'slide_default_fade', 'api_key_flickr',
        'language']})]


<mask token>

<mask token>


class TextAdmin(admin.ModelAdmin):
    fieldsets = [(None, {'fields': ['headline', 'text', 'slug']})]
    prepopulated_fields = {'slug': ('headline',)}


class MediaAdmin(admin.ModelAdmin):
    fieldsets = [(None, {'fields': ['title', 'url', 'caption', 'credit',
        'thumbnail', 'slug']})]
    prepopulated_fields = {'slug': ('title',)}


class TimelineAdmin(admin.ModelAdmin):
    fieldsets = [(None, {'fields': ['title', 'slug', 'text', 'media',
        'published', 'options_preset']})]
    prepopulated_fields = {'slug': ('title',)}


class EventAdmin(admin.ModelAdmin):
    fieldsets = [(None, {'fields': ['title', 'slug', 'start_date',
        'end_date', 'timeline', 'media', 'text']})]
    list_display = 'title', 'start_date', 'end_date'
    prepopulated_fields = {'slug': ('title',)}
    search_fields = ['title', 'start_date', 'end_date']


class OptionsPresetAdmin(admin.ModelAdmin):
    fieldsets = [('Options', {'fields': ['preset_title', 'script_path',
        'height', 'width', 'scale_factor', 'layout', 'timenav_position',
        'optimal_tick_width', 'base_class', 'timenav_height',
        'timenav_height_percentage', 'timenav_height_min',
        'marker_height_min', 'marker_width_min', 'marker_padding',
        'start_at_slide', 'menubar_height', 'skinny_size', 'relative_date',
        'use_bc', 'duration', 'dragging', 'trackResize', 'map_type',
        'slide_padding_lr', 'slide_default_fade', 'api_key_flickr',
        'language']})]


<mask token>

<mask token>


class TextAdmin(admin.ModelAdmin):
    fieldsets = [(None, {'fields': ['headline', 'text', 'slug']})]
    prepopulated_fields = {'slug': ('headline',)}


class MediaAdmin(admin.ModelAdmin):
    fieldsets = [(None, {'fields': ['title', 'url', 'caption', 'credit',
        'thumbnail', 'slug']})]
    prepopulated_fields = {'slug': ('title',)}


class TimelineAdmin(admin.ModelAdmin):
    fieldsets = [(None, {'fields': ['title', 'slug', 'text', 'media',
        'published', 'options_preset']})]
    prepopulated_fields = {'slug': ('title',)}


class EventAdmin(admin.ModelAdmin):
    fieldsets = [(None, {'fields': ['title', 'slug', 'start_date',
        'end_date', 'timeline', 'media', 'text']})]
    list_display = 'title', 'start_date', 'end_date'
    prepopulated_fields = {'slug': ('title',)}
    search_fields = ['title', 'start_date', 'end_date']


class OptionsPresetAdmin(admin.ModelAdmin):
    fieldsets = [('Options', {'fields': ['preset_title', 'script_path',
        'height', 'width', 'scale_factor', 'layout', 'timenav_position',
        'optimal_tick_width', 'base_class', 'timenav_height',
        'timenav_height_percentage', 'timenav_height_min',
        'marker_height_min', 'marker_width_min', 'marker_padding',
        'start_at_slide', 'menubar_height', 'skinny_size', 'relative_date',
        'use_bc', 'duration', 'dragging', 'trackResize', 'map_type',
        'slide_padding_lr', 'slide_default_fade', 'api_key_flickr',
        'language']})]


admin.site.register(Timeline, TimelineAdmin)
admin.site.register(Media, MediaAdmin)
admin.site.register(Text, TextAdmin)
admin.site.register(Event, EventAdmin)
admin.site.register(OptionsPreset, OptionsPresetAdmin)

from django.contrib import admin
from .models import *


class TextAdmin(admin.ModelAdmin):
    fieldsets = [(None, {'fields': ['headline', 'text', 'slug']})]
    prepopulated_fields = {'slug': ('headline',)}


class MediaAdmin(admin.ModelAdmin):
    fieldsets = [(None, {'fields': ['title', 'url', 'caption', 'credit',
        'thumbnail', 'slug']})]
    prepopulated_fields = {'slug': ('title',)}


class TimelineAdmin(admin.ModelAdmin):
    fieldsets = [(None, {'fields': ['title', 'slug', 'text', 'media',
        'published', 'options_preset']})]
    prepopulated_fields = {'slug': ('title',)}


class EventAdmin(admin.ModelAdmin):
    fieldsets = [(None, {'fields': ['title', 'slug', 'start_date',
        'end_date', 'timeline', 'media', 'text']})]
    list_display = 'title', 'start_date', 'end_date'
    prepopulated_fields = {'slug': ('title',)}
    search_fields = ['title', 'start_date', 'end_date']


class OptionsPresetAdmin(admin.ModelAdmin):
    fieldsets = [('Options', {'fields': ['preset_title', 'script_path',
        'height', 'width', 'scale_factor', 'layout', 'timenav_position',
        'optimal_tick_width', 'base_class', 'timenav_height',
        'timenav_height_percentage', 'timenav_height_min',
        'marker_height_min', 'marker_width_min', 'marker_padding',
        'start_at_slide', 'menubar_height', 'skinny_size', 'relative_date',
        'use_bc', 'duration', 'dragging', 'trackResize', 'map_type',
        'slide_padding_lr', 'slide_default_fade', 'api_key_flickr',
        'language']})]


admin.site.register(Timeline, TimelineAdmin)
admin.site.register(Media, MediaAdmin)
admin.site.register(Text, TextAdmin)
admin.site.register(Event, EventAdmin)
admin.site.register(OptionsPreset, OptionsPresetAdmin)

from django.contrib import admin
from .models import *


# Register your models here.


class TextAdmin(admin.ModelAdmin):
    fieldsets = [(None, {'fields': ['headline', 'text', 'slug']})]
    prepopulated_fields = {'slug': ('headline',)}


class MediaAdmin(admin.ModelAdmin):
    fieldsets = [(None, {'fields': ['title', 'url', 'caption', 'credit', 'thumbnail', 'slug']})]
    prepopulated_fields = {'slug': ('title',)}


class TimelineAdmin(admin.ModelAdmin):
    fieldsets = [(None, {'fields': ['title', 'slug', 'text', 'media', 'published', 'options_preset']}), ]
    prepopulated_fields = {'slug': ('title',)}


class EventAdmin(admin.ModelAdmin):
    fieldsets = [(None, {'fields': ['title', 'slug', 'start_date', 'end_date', 'timeline', 'media', 'text']})]
    list_display = ('title', 'start_date', 'end_date')
    prepopulated_fields = {'slug': ('title',)}
    search_fields = ['title', 'start_date', 'end_date']


class OptionsPresetAdmin(admin.ModelAdmin):
    fieldsets = [('Options', {'fields': [
        'preset_title',
        'script_path',
        'height',
        'width',
        'scale_factor',
        'layout',
        'timenav_position',
        'optimal_tick_width',
        'base_class',
        'timenav_height',
        'timenav_height_percentage',
        'timenav_height_min',
        'marker_height_min',
        'marker_width_min',
        'marker_padding',
        'start_at_slide',
        'menubar_height',
        'skinny_size',
        'relative_date',
        'use_bc',
        'duration',
        'dragging',
        'trackResize',
        'map_type',
        'slide_padding_lr',
        'slide_default_fade',
        'api_key_flickr',
        'language',
    ]})]


admin.site.register(Timeline, TimelineAdmin)
admin.site.register(Media, MediaAdmin)
admin.site.register(Text, TextAdmin)
admin.site.register(Event, EventAdmin)
admin.site.register(OptionsPreset, OptionsPresetAdmin)
