Django : Adding extra feature in the User model of auth App
<p>I want to add extra feature in the User model of auth app but I don't want to get my hand dirty with the django source code or I don't want to create a new User model which extends the User model of auth app. Is it possible? if yes then how ?</p>

<p>P.S I have seen django-eav but I want to permanently store the value of that feature in the database and display it in the admin site.</p>

<p>The answers in the question (<a href="http://stackoverflow.com/questions/44109/extending-the-user-model-with-custom-fields-in-django">Extending the User model with custom fields in Django</a>) suggests either extension or substitution. I don't want those </p>

<p>There are a few ways to do this, but I'd recommend subclassing Django's Abstract User model. For example:</p>

<pre><code>from django.contrib.auth.models import AbstractUser
from django.db import models
from django.utils.translation import ugettext_lazy as _

class KarmaUser(AbstractUser): 
    karma = models.PositiveIntegerField(default=0, blank=True)

# Inside project/settings.py
AUTH_USER_MODEL = "profiles.KarmaUser"
</code></pre>

<p>More info here: <a href="https://docs.djangoproject.com/en/1.10/topics/auth/customizing/#specifying-a-custom-user-model" rel="nofollow">https://docs.djangoproject.com/en/1.10/topics/auth/customizing/#specifying-a-custom-user-model</a></p>

<p>or you could try linking back to the user model with a OneToOneField e.g:</p>

<pre><code>from django.conf import settings

class CustomProfile(models.Model):
    user = models.OneToOneField(settings.AUTH_USER_MODEL)
    karma = models.PositiveIntegerField(default=0, blank=True)
</code></pre>

python django