from django.contrib import admin
from imager_images.models import ImagerAlbum, ImagerPhoto
# from django.contrib.auth.admin import UserAdmin


# class ImagerAlbumInline(admin.StackedInline):
#     model = ImagerPhoto
#     verbose_name_plural = 'imager albums'


class PhotoAdmin(admin.ModelAdmin):
    list_display = ('picture', 'title', 'user',
                    'description', 'date_modified')
    list_filter = ['albums', 'user']
    search_fields = ['title', 'albums', 'user']
    readonly_fields = ('image_tag', )


class AlbumAdmin(admin.ModelAdmin):
    list_display = ('title', 'user', 'description',
                    'date_created', 'date_modified')
    list_filter = ['published', 'user']
    search_fields = ['title', 'published', 'user']
    # inlines = (ImagerAlbumInline, )


admin.site.register(ImagerAlbum, AlbumAdmin)
admin.site.register(ImagerPhoto, PhotoAdmin)

@@ -140,128 +140,8 @@
 n%0A%0A%0A
-# class ImagerAlbumInline(admin.StackedInline):%0A#     model = ImagerPhoto%0A#     verbose_name_plural = 'imager albums'%0A%0A%0A
 clas
@@ -164,32 +164,56 @@
 in.ModelAdmin):%0A
+    model = ImagerPhoto%0A
     list_display
@@ -416,16 +416,50 @@
 ge_tag',
+ 'date_uploaded', 'date_modified',
  )%0A%0A%0Acla
@@ -695,40 +695,58 @@
     
-# inlines = (ImagerAlbumInline, 
+readonly_fields = ('date_modified', 'date_created'
 )%0A%0A%0A

Add additional read only fields to admin view for Photos and Albums