junction icon indicating copy to clipboard operation
junction copied to clipboard

Add additional field called display_name in profile model

Open ChillarAnand opened this issue 9 years ago • 25 comments

if user signups using 3rd party account, username is generating automatically based on name.

ChillarAnand avatar May 30 '15 07:05 ChillarAnand

Yes, this was already asked by one of the user. We should have this.

+1

On Sat, May 30, 2015 at 12:58 PM, Anand Reddy Pandikunta < [email protected]> wrote:

if user signups using 3rd party account, username is generating automatically based on name.

— Reply to this email directly or view it on GitHub https://github.com/pythonindia/junction/issues/264.

Regards Kracekumar Ramaraju http://kracekumar.com +91 85530 29521

kracekumar avatar May 30 '15 07:05 kracekumar

How about setting SOCIALACCOUNT_AUTO_SIGNUP = False ?

nabeelvalapra avatar May 30 '15 12:05 nabeelvalapra

by setting that all auth will display a default form with email & username after verification from 3rd party. we have to override that form to display only username. https://django-allauth.readthedocs.org/en/latest/configuration.html

or we can have a profile page where user can change it anytime?

ChillarAnand avatar Jun 01 '15 13:06 ChillarAnand

@ChillarAnand how about having this option available at both the places.

theskumar avatar Jun 15 '15 11:06 theskumar

@theskumar :+1:

ChillarAnand avatar Jun 15 '15 14:06 ChillarAnand

I would lean to have profile section where user can modify these auto generated stuff. Signup process should be really quick.

So along with Social Accounts in the drop down we can have Edit Profile option.

We need also bigger dashboard for users to see their talks and selected talks and tickets information etc in the future, we will have separate issue for that.

For now we can have Edit profile section alone.

kracekumar avatar Jun 18 '15 15:06 kracekumar

username are not meant to be changeable. I propose to add field alias_name in profile page. if alias_name value is entered we show it else show username. This is much easier and consistent way.

@ChillarAnand @kracekumar : Let me know our thoughts ?

vnbang2003 avatar Jul 01 '15 16:07 vnbang2003

@vnbang2003 Makes sense to me. We can call it Display Name.

kracekumar avatar Jul 05 '15 08:07 kracekumar

I am working on this issue

vsham20 avatar Jan 03 '16 07:01 vsham20

@vsham20 Looks like we don't have custom user model yet. We are using default User provided by django. We have to create new model here.

ChillarAnand avatar Jan 04 '16 13:01 ChillarAnand

Dashboard view https://github.com/pythonindia/junction/blob/master/junction/profiles/views.py

ChillarAnand avatar Jan 04 '16 13:01 ChillarAnand

@ChillarAnand hii...how can i setup this on my local machine. I see the documentation but i am getting some errors.

vsham20 avatar Jan 09 '16 10:01 vsham20

Please post the errors you are getting.

ChillarAnand avatar Jan 09 '16 10:01 ChillarAnand

@ChillarAnand here http://paste.openstack.org/show/483364/ i am getting this "InsecurePlatformWarning" and i cant access it via browser too

vsham20 avatar Jan 09 '16 11:01 vsham20

It is just a warning. You can ignore that if packages are installed successfully.

ChillarAnand avatar Jan 09 '16 12:01 ChillarAnand

@ChillarAnand cool ...and what about accessing it?

vsham20 avatar Jan 09 '16 12:01 vsham20

If that step is completed, all packages are installed. What do you want to access?

ChillarAnand avatar Jan 12 '16 17:01 ChillarAnand

@ChillarAnand I am Working on it!!

ibrahimsha23 avatar Dec 13 '16 18:12 ibrahimsha23

@ibrahim45 any updates?

ChillarAnand avatar Feb 10 '17 13:02 ChillarAnand

@ChillarAnand it's not @iambibhas, it's @ibrahim45

kracekumar avatar Feb 11 '17 17:02 kracekumar

@ChillarAnand Is the display name have to be shown in navigation bar?

ibrahimsha23 avatar Feb 21 '17 02:02 ibrahimsha23

I think it is better to show dislay_name in the navigation bar if user has set it.

ChillarAnand avatar Feb 21 '17 13:02 ChillarAnand

@ChillarAnand Is it right to use django template tag for showing display_name? please suggest if you have any idea on this.

ibrahimsha23 avatar Feb 21 '17 13:02 ibrahimsha23

If it is stored in user model, {{ user.display_name }} should work?

ChillarAnand avatar Feb 21 '17 13:02 ChillarAnand

Is someone working over this issue? If not, I'd like to take it up

gutsytechster avatar Jun 10 '20 17:06 gutsytechster