@@ -0,0 +1,1116 @@
+# -*- coding: utf-8 -*-%0Afrom django.contrib import admin%0A%0Afrom .models import AIPics, AIAttachment%0A%0A%0Aclass AIAttachmentAdminInline(admin.TabularInline):%0A    model = AIAttachment%0A    list_display = ('id', 'ai_pics', 'file_no', 'attachment')%0A    list_filter = ('ai_pics',)%0A%0A%0A@admin.register(AIPics)%0Aclass AIPicsAdmin(admin.ModelAdmin):%0A    readonly_fields = ('id', 'created_at',)%0A    fields = %5B%0A        'id',%0A        'product',%0A        'client',%0A        'created_at',%0A        (%0A            'original_width',%0A            'original_height',%0A            'width',%0A            'height'%0A        ),%0A        'device_name',%0A        'flash_used',%0A        'was_portrait',%0A        'is_valid'%0A    %5D%0A    list_display = (%0A        'id',%0A        'product',%0A        'client',%0A        'created_at',%0A        'is_valid',%0A    )%0A    inlines = %5B%0A        AIAttachmentAdminInline%0A    %5D%0A    list_filter = ('product', 'created_at', 'is_valid')%0A    date_hierarchy = 'created_at'%0A%0A%0A@admin.register(AIAttachment)%0Aclass AIAttachmentAdmin(admin.ModelAdmin):%0A    list_display = ('id', 'ai_pics', 'file_no', 'attachment')%0A    list_filter = ('ai_pics',)%0A

Add admin for ai_pics