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__(self):
return self.program + " " + self.course_number
or
def __str__(self):
return "%s %s" % (self.program, self.course_number)
(Personally, I would use the second version).
Martin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---