Monday, June 2, 2008
We also taught him how to "zerbert" his hands. This is very similar to making "fart noises", but what responsible parent would teach such a thing. Tacky. And crass.
Lastly, we long ago taught him how to use lotion, and he has been very fond of lotioning both his belly and his arms.
Now we have taught him the joy of lotioning other people. It's as if spas employed little woodland gnomes who emerge from their warm burroughs to gently rub lotion onto your drying skin.
Or maybe like the shoemaker and the elves, except its lotion. Or maybe it's like you're a giant piece of soft candy and an oompa-loompa moseys over to smear tasty icing on your legs.
It's kind of like all those things and really cool.
Wednesday, May 7, 2008
Saturday, March 8, 2008
Friday, January 11, 2008
Monday, August 20, 2007
The easiest way to define self for a Model:
Name is a field in the Model. self.name takes the value for 'name' and uses it as the default string representation for that row.
You can also user more complex strings to define self. In this example, 'country' is another ForeignKeyField column in the Model, and 'abbr_2' is a column in the Country model. Dot notation lets you travel across Models:
return '%s, %s' % (self.name, self.country.abbr_2)
I think you can also uses custom managers to get even fancier, but I can't figure that out.
Monday, December 18, 2006
Sunday, December 17, 2006
news = articles.filter(article_type__name__exact='news')
Articles is a query set where I yanked all an artist's related articles. The filter works by looking at the object__attribute__filter you'd like to use.
Works for news, but it's not working for playlists...
I need to check-in, but I'm kind of waiting on getting the filters on M2M lookups working correctly. Bastards.