You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112
  1. import hashlib
  2. from django.contrib.auth.models import User as BaseUser
  3. class User(BaseUser):
  4. @property
  5. def gravatar(self):
  6. return hashlib.md5(self.email.encode('utf-8')).hexdigest()
  7. class Meta:
  8. proxy = True