Re: Customizing the Sites framework

2010-03-21 Thread Atamert Ölçgen
On Sunday 21 March 2010 05:43:44 ejm wrote: > Hi, > > My app uses a model called Site which is essentially the same as in > the django.contrib.sites framework (domain and name), except that my > model needs an extra field and is related through a foreign key to > another model. (It is related to a

Re: Customizing the Sites framework

2010-03-21 Thread Vasil Vangelovski
Either use model inheritance or one by one relationships with the Site model. The other solution which doesnt require changing django's code would be monkeypatching (changing the class in runtime from the models.py file of one of your apps), not a great idea. On Sun, Mar 21, 2010 at 4:43 AM, ej

Customizing the Sites framework

2010-03-20 Thread ejm
Hi, My app uses a model called Site which is essentially the same as in the django.contrib.sites framework (domain and name), except that my model needs an extra field and is related through a foreign key to another model. (It is related to a model called Client, which stores all my Clients, and t