from django.contrib import admin
from whats_fresh_api.models import Image

class ImageAdmin(admin.ModelAdmin):
    readonly_fields = ('created', 'modified')

admin.site.register(Image, ImageAdmin)

from django.contrib import admin
from whats_fresh_api.models import *

class VendorProductInline(admin.TabularInline):
    model = VendorProduct
    extra = 2

class ImageAdmin(admin.ModelAdmin):
    readonly_fields = ('created', 'modified')
class VendorAdmin(admin.ModelAdmin):
    readonly_fields = ('created', 'modified')
    inlines = (VendorProductInline,)
class ProductAdmin(admin.ModelAdmin):
    readonly_fields = ('created', 'modified')
    inlines = (VendorProductInline,)

admin.site.register(Image, ImageAdmin)
admin.site.register(Product, ProductAdmin)
admin.site.register(Vendor, VendorAdmin)
admin.site.register(Preparation)
admin.site.register(Story)

Create basic admin interface