[Answered ]-How to use django-avatar with my own User model and not with django.contrib.auth.models.User

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.

Leave a comment