El Thu, 17 Sep 2009 10:00:22 -0700 (PDT)
IanSR <ijsto...@crystal.harvard.edu> escribió:

> I realize this isn't in typical Django style, but I'd be interested
> any feedback.  The rough idea is outlined below.

It doesn't sound like a good idea since you may end up breaking DRY (by writing
the same bolierplate code for those methods in each of your models; you could
try writing a base class and inheriting, but that can get complicated too
compared to what I'm about to suggest).

You really should take a look at Django's generic views[0]

[0]
http://docs.djangoproject.com/en/dev/topics/generic-views/#topics-generic-views

-- 
P.U. Gonzalo Delgado <gonzalodelg...@fortix.com.ar>
http://gonzalodelgado.com.ar/

Attachment: pgpTo39J1DiJg.pgp
Description: PGP signature

Reply via email to