A userprofile with that boolean flag sounds like the best way forward.
--
Dennis K.
They've gone to plaid!
So, if the user's "first login" is when the account is created, you could check to see if they're less than a second apart. If the user is created automatically, then you can do the same check, and if they're still that close together then you know they've never logged in.
I don't think there could really be any problem with race conditions, because both dates are initialized at the same time, when the user is created, so a delta of, say, two seconds should be more than enough. However, it does feel a little bit dirty to me. Not as dirty as having a boolean in a join table that has to be checked on every log in for the rest of the life of the application just for a single use, though.
Shawn
> it does feel a little bit dirty to me.Me too, that way leads to deciding something is a witch just because it floats. Can't argue with a Bool, and also, it might eventually be nice to be able to flip the bit on a whim (say a user wanted that "out of the box" experience all over again).
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Wouldn't it make more sense for that date to be null until the user
actually logs in?
On Apr 5, 4:25 pm, Wesley Childs <childs.wes...@gmail.com> wrote:
> Thanks for the advice.
>
> I'm going for boolean as I like the idea of flipping back on in the future
> for special events.
>
> Thanks
>
> Wes
>
> On 5 April 2010 21:06, Owen Nelson <onel...@gmail.com> wrote:
>
> > > it does feel a little bit dirty to me.
> > Me too, that way leads to deciding something is a witch just because it
> > floats. Can't argue with a Bool, and also, it might eventually be nice to
> > be able to flip the bit on a whim (say a user wanted that "out of the box"
> > experience all over again).
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users...@googlegroups.com<django-users%2Bunsu...@googlegroups.com>