Re: Error with Passing a class name as a parameter in a ManyToManyField

2013-07-14 Thread Mike Dewhirst
On 15/07/2013 1:02am, Charounson Saintilus wrote: This is my first time using the Django Web Framework and I'm new to the python language, so please bear with me. I've created a model (i.e. a class) called Course which defines several variables: class Course(models.Model): name = models

Re: Error with Passing a class name as a parameter in a ManyToManyField

2013-07-14 Thread Jonathan Baker
You error is in the following line: prereq = models.ManyToManyField(*Course*, blank=True, null=True, through='PreReqToCourse') To phrase this as a sentence, you're saying that "Many courses can belong to many courses." which doesn't follow. I'm guessing that you're aiming to achieve something

Error with Passing a class name as a parameter in a ManyToManyField

2013-07-14 Thread Charounson Saintilus
This is my first time using the Django Web Framework and I'm new to the python language, so please bear with me. I've created a model (i.e. a class) called Course which defines several variables: class Course(models.Model): name = models.CharField(max_length=32)