Re: django-registration question: activation_key_expired.boolean = True

2010-10-31 Thread adj7388
> This particular object is used by the admin: > > http://docs.djangoproject.com/en/1.2/ref/contrib/admin/#django.contri... > > Read through that carefully and you'll see the 'boolean' option and a > few other useful tricks. Well, this is embarrassing. I had actually read (err, skimmed?) that

Re: django-registration question: activation_key_expired.boolean = True

2010-10-31 Thread James Bennett
On Sun, Oct 31, 2010 at 8:48 AM, adj7388 wrote: > What does that last line do? I have looked high and low in Django and > Python documentation, but I can't find an example or explanation of > this pattern. It appears to be clobbering the method > 'activation_key_expired()' with

django-registration question: activation_key_expired.boolean = True

2010-10-31 Thread adj7388
This question refers to line 205 here: http://bitbucket.org/ubernostrum/django-registration/src/b6b213d84d32/registration/models.py In a nutshell: class RegistrationProfile(models.Model): def activation_key_expired(self): ... expiration_date =