mirror of
https://github.com/pinry/pinry.git
synced 2025-11-13 00:25:41 +01:00
13 lines
239 B
Python
13 lines
239 B
Python
import hashlib
|
|
|
|
from django.contrib.auth.models import User as BaseUser
|
|
|
|
|
|
class User(BaseUser):
|
|
@property
|
|
def gravatar(self):
|
|
return hashlib.md5(self.email.encode('utf-8')).hexdigest()
|
|
|
|
class Meta:
|
|
proxy = True
|