1👍
✅
check out django-avatar models.py
66. class Avatar(models.Model):
67. user = models.ForeignKey(getattr(settings, 'AUTH_USER_MODEL', 'auth.User'))
68. ....
the code seem to be ready to accept custom User model, however, you can always git clone and change it as you wish…
1👍
Another option for a simple avatar is django-easy-avatar. It has just has a foreign key relationship to the user table and requires no templates unless you want to override default functionality.
- [Answered ]-Django 1.6 – parse template tags after import/parse from view
- [Answered ]-Convert argument to string
Source:stackexchange.com