projects
/
sommitrealweird.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
First draft image gallery
[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)