Hi Frocco

> I need a couple of extra fields in my user model 

You can connect a model in your app to the user model and add your
fields there.

Example myapp/models.py:
...
from django.contrib.auth.models import User
...
class Profile(models.Model):
    user = models.OneToOneField(User, related_name='profile')
...

You can then access your data via "user.profile" in your views.

Hope that helps,
Andreas

-- 
Kurs 10 / IT-Consulting
Andreas Schosser                                  a...@kurs-10.de

St.-Cajetan-Str. 13                  Telefon +49 89 41615842-0
81669 München                        Telefax +49 89 41615842-3

0x6EDECCF1 - 2AA0 939B 5585 819B FCE8 E43B 0B8E 0DF2 6EDE CCF1

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/527CC3FD.6000602%40kurs-10.de.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to