Adding Foreign Key
First, declare the authentation User object:
from django.contrib.auth.models import User
and then add to your model:
user = models.ForeignKey(User)
Don’t forget to update your DB (you may need to remove your current table) by running on Bash:
python manage.py syncdb
Note: I’m using Django on CentOS. the last command may be different in other distributions.