-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
er, shit? having issues rolling things back... the last 2 commits wer…
…e meant for my fork..
- Loading branch information
Chris Drackett
committed
Mar 27, 2009
1 parent
6b70170
commit 1ad32db
Showing
69 changed files
with
786 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Oops, something went wrong.