xmpp.chapril.org-conversejs/accounts/admin.py

9 lines
192 B
Python
Raw Normal View History

2012-03-02 14:43:56 +01:00
from django.contrib import admin
from accounts.models import Profile
class ProfileAdmin(admin.ModelAdmin):
search_fields = ['user__username']
admin.site.register(Profile, ProfileAdmin)