Re: AttributeError for unique field during ModelForm validation

2012-11-11 Thread Andrejus
a ModelForm with an abstract model is supported? If not I will > consider dynamically creating an instance of derived model form. But it > looks a lot cleaner with the abstract class. > > On Saturday, November 10, 2012 5:12:18 PM UTC-5, Andrejus wrote: >> >> Hi! >> I

Re: AttributeError for unique field during ModelForm validation

2012-11-10 Thread Andrejus
Hi! I would try to set unique property within "real" model, not within abstract base class. Besides django creates unique pk on each model by default, so to my mind creating additional unique field is redundant. Not quite sure, but there seems to be some restrictions on use of unique property.

Re: Why am I getting an error when send e-mail from hosting?

2012-07-16 Thread Andrejus
er explicitly solved my problem. понедельник, 16 июля 2012 г., 16:39:52 UTC+4 пользователь Nicolas Emiliani написал: > > > > On Mon, Jul 16, 2012 at 4:05 AM, Andrejus wrote: > >> I've got a Django instance (1.4, python 2.7.2) running via FastCGI on >> vds-hosting.

Re: turning a Model instance into an instance of one of it's subclasses

2010-12-20 Thread Andrejus
Sent from my mobile device On Dec 20, 2010 8:04 PM, "morgan wahl" wrote: > Hello all, > > I was wonder if there is a way to turn a model instance into an > instance of a subclass of it's class. E.g.: > > class Document(models.Model): > doctype = models.CharField(max_length=256, blank=True, null=Tr