thanks guys, i also did some tests without changing the registration source 
by doing get_profile() and it seems to work fine so i guess the less i 
touch it the better

On Saturday, April 21, 2012 4:41:21 PM UTC+1, Brandy wrote:
>
> It looks correct. Is everything showing up now?
>  
>
> On Saturday, April 21, 2012 9:38:51 AM UTC-5, psychok7 wrote:
>
>> its seemed to work, thanks 
>> from django.contrib import admin
>>
>> from registration.models import RegistrationProfile , UserProfile
>>
>>
>> class RegistrationAdmin(admin.ModelAdmin):
>>     list_display = ('__unicode__', 'activation_key_expired')
>>     search_fields = ('user__username', 'user__first_name')
>>
>>
>> admin.site.register(RegistrationProfile, RegistrationAdmin)
>> admin.site.register(UserProfile)
>>
>> is this the correct way to do this? the associacions are there now in 
>> admin
>>
>> On Saturday, April 21, 2012 2:50:27 PM UTC+1, Brandy wrote:
>>>
>>> Have you created an admin.py file? It should look something like this:
>>>  
>>> from poll.models import Poll
>>> from django.contrib import admin
>>>  
>>> admin.site.register(Poll)
>>>  
>>>
>>> On Saturday, April 21, 2012 12:28:05 AM UTC-5, psychok7 wrote:
>>>
>>>> hi there, i am quite new to django and i am having a little trouble 
>>>> extending my User with Userprofile. i have read lots of documentation 
>>>> about 
>>>> it and i have implemented as an extension of 
>>>> https://bitbucket.org/ubernostrum/django-registration a version but i 
>>>> am not sure it works the way its supposed to. basically when i create a 
>>>> new 
>>>> user (in admin view), only the basic built in fields show up, but my new 
>>>> fields don't.. on the other hand my database seems to be ok with one table 
>>>> for user and another for user profile with the ids matching. can you guys 
>>>> help me and let me know wht am i doing wrong and whats the correct way? 
>>>> PLEASE don't refer me back to the documentation because i have read it all
>>>>
>>>> here is my code:
>>>> http://paste.ubuntu.com/939226/
>>>> http://paste.ubuntu.com/939227/
>>>> http://paste.ubuntu.com/939229/
>>>>
>>>> i also added AUTH_PROFILE_MODULE = 'registration.UserProfile' in 
>>>> settings.py
>>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/pTCTljlgQ08J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to