This is in the application from http://code.google.com/p/django-registration/
The code is: class RegistrationProfile(models.Model): """ A simple profile which stores an activation key for use during user account registration. Generally, you will not want to interact directly with instances of this model; the provided manager includes methods for creating and activating new accounts, as well as for cleaning out accounts which have never been activated. While it is possible to use this model as the value of the ``AUTH_PROFILE_MODULE`` setting, it's not recommended that you do so. This model's sole purpose is to store data temporarily during account registration and activation, and a mechanism for automatically creating an instance of a site-specific profile model is provided via the ``create_inactive_user`` on ``RegistrationManager``. """ user = models.ForeignKey(User, unique=True, verbose_name=_('user')) activation_key = models.CharField(_('activation key'), max_length=40) objects = RegistrationManager() class Meta: verbose_name = _('registration profile') verbose_name_plural = _('registration profiles') class Admin: list_display = ('__str__', 'activation_key_expired') search_fields = ('user__username', 'user__first_name') def __unicode__(self): return u"Registration information for %s" % self.user def activation_key_expired(self): """ Determines whether this ``RegistrationProfile``'s activation key has expired. Returns ``True`` if the key has expired, ``False`` otherwise. Key expiration is determined by the setting ``ACCOUNT_ACTIVATION_DAYS``, which should be the number of days a key should remain valid after an account is registered. """ expiration_date = datetime.timedelta(days=settings.ACCOUNT_ACTIVATION_DAYS) return self.user.date_joined + expiration_date <= datetime.datetime.now() activation_key_expired.boolean = True On Dec 14, 12:27 pm, l5x <[EMAIL PROTECTED]> wrote: > Can you give us "class RegistrationProfile" from C:\Python25\Lib\site- > packages\registration\models.py ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---