Re: Add fields to another app model

2008-12-05 Thread Bojan Mihelac
Hey RM, thanks for your answer. I am looking into 2nd option and try to get more links on this subject. best, Bojan On Dec 4, 6:32 pm, redmonkey <[EMAIL PROTECTED]> wrote: > Hey Bojan > > There is a few ways you could do this (certainly more that what I'm > about to tell you). It depends on the

Re: Add fields to another app model

2008-12-04 Thread redmonkey
Hey Bojan There is a few ways you could do this (certainly more that what I'm about to tell you). It depends on the effect you want to create. Perhaps the simplest way is to inherit from the existing class. But inheriting classes should only strictly be used as an `is a` relationship. So perhaps

Re: Add fields to another app model

2008-12-04 Thread redmonkey
Hey Bojan There is a few ways you could do this (certainly more that what I'm about to tell you). It depends on the effect you want to create. Perhaps the simplest way is to inherit from the existing class. But inheriting classes should only strictly be used as an `is a` relationship. So perhaps

Add fields to another app model

2008-12-04 Thread Bojan Mihelac
Hi all! I am looking for right way to add fields to model that is in another app. At first I created mysite application and in models.py put from satchmo.contact.models import Contact Contact.add_to_class("company_name", models.CharField(max_length = 200)) that raises exception ProgrammingError