Management form in Model Formsets

2012-06-30 Thread Knight Samar
Hi, I am using Django 1.2 and developing using Model formsets. Using JavaScript, I am allowing the user to dynamically "Add another" formset on the template, but I can't figure out what exactly I have to modify in the management forms, for all the formsets to be successfully saved. The documen

Re: Management form in Model Formsets

2012-07-01 Thread Knight Samar
check this snippet out: djangosnippets.org/snippets/1389 > */* > Le 1 juil. 2012 06:27, "Knight Samar" a écrit : > >> Hi, >> >> I am using Django 1.2 and developing using Model formsets. Using >> JavaScript, I am allowing the user to dynamically "

Getting children of an ABC

2012-01-01 Thread Knight Samar
I am using Django 1.3.1 and I have the following piece of models: class masterData(models.Model): uid = models.CharField(max_length=20,primary_key=True) class Meta: abstract = True; class Type1(masterData): pass; class Type2(masterData): pass; Now, I am trying to get

Django not enforcing blank=False on a model

2013-07-29 Thread Knight Samar
Hi, I have a model > from django.db import models > > class Organization(models.Model): > name = models.CharField(max_length=100, > blank = False, #mandatory > help_text = "Name of your Organization", > verbo