> Plain ol' Python multiple inheritance should work. Just define the
> fields you want in some class:
> {{{
> class PersonMixin(object):
> first = models.CharField(max_length=16)
> last = models.CharField(max_length=16)
>
> class Person(models.Model, PersonMixin):
> pass
>
> class Person2(models.Model, PersonMixin):
> pass
>
> }}}
Hi George,
I have tried that earlier. Unfortunately, that doesn't work. I think
I'll have to duplicate the definition. :(
Thanks,
Ram
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---