Commits

Anonymous committed c522011

Little nicer admin display of RegistrationProfile

  • Participants
  • Parent commits 1857fe1

Comments (0)

Files changed (1)

File registration/models.py

     objects = RegistrationManager()
     
     class Admin:
-        pass
+        list_display = ('__str__', 'activation_key_expired')
     
     def __str__(self):
         return "Registration information for %s" % self.user.username
         """
         expiration_date = datetime.timedelta(days=settings.ACCOUNT_ACTIVATION_DAYS)
         return self.user.date_joined + expiration_date <= datetime.datetime.now()
+    activation_key_expired.boolean = True