When I tried to implement the example, class Poll(models.Model): # ... def __unicode__(self): # Python 3: def __str__(self): return self.question
I get the error, Tab error: inconsistent use of tabs and spaces. If I put def __str__ (self): in the same tab as class, it does not serve the purpose. Any help? -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e5b59978-0f33-43ec-b3fc-ae398dab8770%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.