13
13
from django.contrib import admin
14
14
from models import Profile
16
17
class ProfileAdmin(admin.ModelAdmin):
17
18
list_display = ['user', 'time_zone', 'location']
20
21
search_fields = ['user__username', 'user__first_name', 'user__last_name']
23
'fields': ('user', 'time_zone', 'location')
24
'fields': ('user', 'time_zone', 'location')
27
'classes': ('collapse',),
28
'fields' : ('jabber', 'icq', 'msn', 'aim', 'yahoo')
28
'classes': ('collapse',),
29
'fields': ('jabber', 'icq', 'msn', 'aim', 'yahoo')
31
32
(_('Additional options'), {
32
'classes': ('collapse',),
33
'fields' : ('site', 'avatar', 'signature', 'show_signatures')
33
'classes': ('collapse',),
34
'fields': ('site', 'avatar', 'signature', 'show_signatures')
38
39
admin.site.register(Profile, ProfileAdmin)