Re: Setting User as foreign key

2010-05-17 Thread Pirate Pete
Turns out i simply had to drop all the tables in the database, flush then syncdb and everything worked fine. thanks for your help :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.

Re: Setting User as foreign key

2010-05-17 Thread Sameer Rahmani
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 First : did you sync your db after adding user field ? second : there were some django apps in google code for rating . and django have a complete comment framework -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) iQEcBAEBAgAGBQJL8XL4A

Setting User as foreign key

2010-05-17 Thread Pirate Pete
Hello, So basically i want to link users to comments they write and ratings they give on a video rating site. this is my models.py: from django.db import models from django.contrib.auth.models import User class Video(models.Model): title = models.CharField(help_text="Title of the video.