Skip to content

Commit

Permalink
er, shit? having issues rolling things back... the last 2 commits wer…
Browse files Browse the repository at this point in the history
…e meant for my fork..
  • Loading branch information
Chris Drackett committed Mar 27, 2009
1 parent 6b70170 commit 1ad32db
Show file tree
Hide file tree
Showing 69 changed files with 786 additions and 0 deletions.
22 changes: 22 additions & 0 deletions admin.py
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,22 @@
from django.contrib import admin

from elsewhere.models import *

class ProfileAdmin(admin.ModelAdmin):
raw_id_fields = ['user']

class SocialNetworkProfileAdmin(ProfileAdmin):
list_display = ('user', 'network', 'username') #, 'date_added')

class InstantMessengerProfileAdmin(ProfileAdmin):
list_display = ('user', 'network', 'username') #, 'date_added')

class WebsiteProfileAdmin(ProfileAdmin):
list_display = ('user', 'name', 'url') #, 'date_added')

## TODO Not sure why I can't grab date_added from the parent Profile model, need to figure this out.

admin.site.register(Network)
admin.site.register(SocialNetworkProfile, SocialNetworkProfileAdmin)
admin.site.register(WebsiteProfile, WebsiteProfileAdmin)
admin.site.register(InstantMessengerProfile, InstantMessengerProfileAdmin)
Loading

0 comments on commit 1ad32db

Please sign in to comment.