mirror of
https://github.com/pinry/pinry.git
synced 2025-11-13 16:45:41 +01:00
12 lines
222 B
Python
12 lines
222 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).hexdigest()
|
||
|
|
|
||
|
|
class Meta:
|
||
|
|
proxy = True
|