Categories

Just for the record. Depends on situation, but in general it's better to do this:

"%s" % self.name

Here Category.name is required but it might be it won't be. Then when you use such an object and you do this: "unicode(cat)" it gonna blow up with NoneType doesn't have bla bla bla.