from django.contrib import admin
from django.contrib.contenttypes.admin import GenericTabularInline

from feed.models import *

# Register your models here.
admin.site.register(Category)

defaultImages = 3


class ImageInline(GenericTabularInline):
    model = Image
    extra = defaultImages


class ImageAdmin(admin.ModelAdmin):
    inlines = [ImageInline, ]


admin.site.register(Interest, ImageAdmin)
admin.site.register(Event, ImageAdmin)

efe3719ad53cad9d808ab170b0261a4de856c15f
<mask token>


class ImageInline(GenericTabularInline):
    model = Image
    extra = defaultImages


class ImageAdmin(admin.ModelAdmin):
    inlines = [ImageInline]


<mask token>

<mask token>
admin.site.register(Category)
<mask token>


class ImageInline(GenericTabularInline):
    model = Image
    extra = defaultImages


class ImageAdmin(admin.ModelAdmin):
    inlines = [ImageInline]


admin.site.register(Interest, ImageAdmin)
admin.site.register(Event, ImageAdmin)

<mask token>
admin.site.register(Category)
defaultImages = 3


class ImageInline(GenericTabularInline):
    model = Image
    extra = defaultImages


class ImageAdmin(admin.ModelAdmin):
    inlines = [ImageInline]


admin.site.register(Interest, ImageAdmin)
admin.site.register(Event, ImageAdmin)

from django.contrib import admin
from django.contrib.contenttypes.admin import GenericTabularInline
from feed.models import *
admin.site.register(Category)
defaultImages = 3


class ImageInline(GenericTabularInline):
    model = Image
    extra = defaultImages


class ImageAdmin(admin.ModelAdmin):
    inlines = [ImageInline]


admin.site.register(Interest, ImageAdmin)
admin.site.register(Event, ImageAdmin)

from django.contrib import admin
from django.contrib.contenttypes.admin import GenericTabularInline

from feed.models import *

# Register your models here.
admin.site.register(Category)

defaultImages = 3


class ImageInline(GenericTabularInline):
    model = Image
    extra = defaultImages


class ImageAdmin(admin.ModelAdmin):
    inlines = [ImageInline, ]


admin.site.register(Interest, ImageAdmin)
admin.site.register(Event, ImageAdmin)
