]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blob - sommitrealweird/photo/admin.py
Stop ReST from dropping the primary title if it's the first title in the document.
[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)