In my models file, I have the following unicode method- def __unicode__(self): return u'%s %s %s %s %s %s' % (self.first_name, self.last_name, self.course, self.lab, self.start_time, self.end_time)
How can I have another unicode method which will return only first_name and last_name? I understand unicode is a constructor. So is there any alternative for this? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.