]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blob - sommitrealweird/photo/admin.py
Lots of changes to fix lots of bugs and add comments to blog
[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)