]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blob - sommitrealweird/photo/admin.py
Checky little photo import script
[sommitrealweird.git] / sommitrealweird / photo / admin.py
1 from models import Album, Photo
2 from django.contrib import admin
3
4 class AlbumAdmin(admin.ModelAdmin):
5     prepopulated_fields = { "slug": ("name",) }
6
7 admin.site.register(Album, AlbumAdmin)
8 admin.site.register(Photo)