Seth,
the python magic "__str__" function shoud return a string but in your
example you returned a tuple consisting of 3 strings.
> def __str__(self):
> return self.program, " ", self.course_number
To return the correct string you should change your code to either:
def __str__
I am trying to display this EDU 103 using:
def __str__(self):
return self.program, " ", self.course_number
program (EDU) is a foreign key and 103 is an integer field. I get
this:
(, ' ', 103L)
What do I need to do? If it is a python (not Django) issue just tell
me. I am new to py
2 matches
Mail list logo