Re: If is first time logging in

2010-05-20 Thread Eric Chamberlain
Anything wrong with adding a flag to the profile model? If the flag is not set, show the profile stuff? It keeps all the profile management in one model. The "flag" could even be a timestamp, so you could show the prompt again, if after X time the user has not added anything to their profile.

Re: If is first time logging in

2010-05-19 Thread Nick
I am, but I'm not opposed to custmizing one. This part of the project will undoubtedly get bundled as a reusable registratioon and login app for other projects so it doing what I'd like it to do is more important than convenience. On May 19, 5:23 pm, Dejan Noveski wrote: > Do you use the generic

Re: If is first time logging in

2010-05-19 Thread Dejan Noveski
Do you use the generic login view? On Thu, May 20, 2010 at 12:16 AM, Nick wrote: > I have an expanded user form right now. Here is the sign up process. > > user registers using username, email, password > > It sends and activation link to that email. > > User clicks on the link and they are acti

Re: If is first time logging in

2010-05-19 Thread Nick
I have an expanded user form right now. Here is the sign up process. user registers using username, email, password It sends and activation link to that email. User clicks on the link and they are activated User logs in Here is where I would like the extended profile to pop up the first time.

Re: If is first time logging in

2010-05-19 Thread Dejan Noveski
Best will be if you make Useraccount model that will inherit from User, add field formsets_passed = BooleanField(initial = False) The reason why i think this is better idea is, user might leave the page before finishing the aditional forms. That way, next time it will be second login and you will

If is first time logging in

2010-05-19 Thread Nick
I'm trying to figure out a way to see if it is a users first time logging in after registering on the site. If it is then I will pass them through some formsets, otherwise I let them go to their profile page. I tried using date_joined == last_login but that doesn't work, as the last login date cha