On Tuesday, July 06, 2010 13:09:20 Paul Johnston wrote: > Hi, > > When coding Elixir models, I find a lot of code is defining > __unicode__ methods, e.g. > > class JobType(el.Entity): > name = el.Field(el.String) > def __unicode__(self): > return self.name > > Now, what would be great is if there was a shortcut, something like: > > class JobType(el.Entity): > name = el.Field(el.String, tounicode=True) > > I'm not quite sure on the name "tounicode" but something that follows > this general idea would be fab.
Erm, why don't you use a Unicode-column in the first place? Diez -- You received this message because you are subscribed to the Google Groups "SQLElixir" 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/sqlelixir?hl=en.
