CodeCatz / TrackCat

A tool for tracking the progress of the kittens (and cat{s,z}) in our CodeCatz meetup group
MIT License
5 stars 14 forks source link

Customize admin interface for UserProfile #171

Closed anuschka closed 9 years ago

anuschka commented 9 years ago

Addressed #145.

mojcas commented 9 years ago

@anuschka please consider updates in UserProfile made in PR #167 as there some fields were removed, for example UserProfile 'user', 'fullname', 'githubuser', since these fields are already part of Django User model, and are being duplicated unnecessarily in UserProfile model.

jurecuhalev commented 9 years ago

Ok, lets figure out the order in which to merge these two PR's.

anuschka commented 9 years ago

I can easily close mine and create it again.

anuschka commented 9 years ago

But can we really remove these fields from the UserProfile model? When I look into the admin I can see only User, Provider, UID and Extradata provided by Github authentication which we use....

mojcas commented 9 years ago

@ercchy told me about this last Wed :+1: UserProfile as per relations, is kind of an "extension" of User (Django object), which has already what we need... for example, it has: username, first_name, last_name, email.. I think we can see it here: https://docs.djangoproject.com/en/1.7/ref/contrib/auth/

jurecuhalev commented 9 years ago

That's not a problem, updating admin.py can be part of refactoring of UserProfile. I'll merge this and you can move the conversation to the Issue.