On Dec 30 2007, 12:47 am, "Waylan Limberg" <[EMAIL PROTECTED]> wrote:
> On Dec 29, 2007 8:49 AM, Sridhar Ratnakumar <[EMAIL PROTECTED]> wrote:
>
> > [that link is going down -- hence, I'm pasting the contents below]
>
> Your willingness to share is much apprciated. However, things tend to
> beco
On Dec 29, 2007 8:49 AM, Sridhar Ratnakumar <[EMAIL PROTECTED]> wrote:
>
> [that link is going down -- hence, I'm pasting the contents below]
>
Your willingness to share is much apprciated. However, things tend to
become quickly forgoten and lost in the list. Not that we do so on
pupose; that's j
[that link is going down -- hence, I'm pasting the contents below]
Django ORM does not support inheritance. Inheritance is a good thing.
Often I want some of the database models to share some common fields
and the same manager. For example consider the case of adding the
delete proxy.
class Reta
1. You still can use super in NonDeleted.get_query_set by using
self.__class__ instead of NonDeleted
2. It could be better to use issubclass(key, models.Manager) instead
of key == 'objects'
On 19 дек, 11:53, Sridhar Ratnakumar <[EMAIL PROTECTED]> wrote:
> I wanted to share this little hack of min
I wanted to share this little hack of mine - conceptual (not database-
based) inheritance for django:
http://nearfar.org/blog/django-model-inheritance.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django deve