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
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.
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.
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
4 matches
Mail list logo