Re: How to implement this model

2010-06-16 Thread Nick
The question is how do I relate this to the business_types in the FulLProfile model? Since a business can have multiple "Premises" On Jun 16, 4:44 pm, Peter Bengtsson wrote: > Without caring or even attempting to understand your business I sounds > like you just need to stop using a BooleanField(

Re: How to implement this model

2010-06-16 Thread Peter Bengtsson
Without caring or even attempting to understand your business I sounds like you just need to stop using a BooleanField() and instead use a ForeignKey(null=True) and then judge if it's "on_premise" by a method rather than a field something like this: class MyModel(Model): related_premise = Fore

Re: How to implement this model

2010-06-16 Thread Nick
I am going to try to add better information for this issue, here we go: The model for the obituary looks like this: class obit_entry(models.Model): first_name = models.CharField('First Name', max_length=100, blank=False) middle_name = models.CharField('Middle Name', max_length=100, blank