~jblount/+junk/ubuntu-background-voting

« back to all changes in this revision

Viewing changes to webternet/syncr/picasaweb/admin.py

  • Committer: Joshua Blount
  • Date: 2009-07-15 06:25:18 UTC
  • Revision ID: joshua@canonical.com-20090715062518-uewfgyyrikh6d2ww
working voting, working loggin in, etc

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from django.contrib import admin
 
2
from syncr.picasaweb.models import Photo, FavoriteList, Album
 
3
 
 
4
class PhotoAdmin(admin.ModelAdmin):
 
5
        list_display = ('taken_date', 'title', 'gphoto_id', 'owner')
 
6
        search_fields = ['title', 'description']
 
7
        date_hierarchy = 'taken_date'
 
8
 
 
9
class FavoriteListAdmin(admin.ModelAdmin):
 
10
        list_display = ('owner', 'sync_date', 'numPhotos')
 
11
 
 
12
class AlbumAdmin(admin.ModelAdmin):
 
13
        list_display = ('gphoto_id', 'owner', 'title')
 
14
 
 
15
admin.site.register(Photo, PhotoAdmin)
 
16
admin.site.register(FavoriteList, FavoriteListAdmin)
 
17
admin.site.register(Album, AlbumAdmin)
 
 
b'\\ No newline at end of file'