Monday, November 3, 2008

Lazy User Foreign Keys

by Michael Trier

Great post by our good friend Alex Gayner where he presents a very creative solution to implementing the common idiom of having a foreign key field to the User model. He wraps it up into a special field that makes it easy to access the user from the model instance.

Bookmark and Share

Continue reading… Join the Discussion, 0 people have left comments.

Sunday, October 19, 2008

Django Field.pre_save() Tip

by Kevin Fricovsky

A very good writeup on using Field.pre_save() to customize logic on a per-field basis, allowing for extra flexibility in your models.

Bookmark and Share

Continue reading… Join the Discussion, 0 people have left comments.

Tags/Topics view all