text_field = models.CharField(max_length=max) can I do this? I am using postgresql 8.4. 开发者_Python百科ThanksYou want to use the type TextField. Like this:
Having a ModelFormSet built with modelformset_factory and using a model with an optional ForeignKey, how can I make empty (null) associations to validate on that form?
In Django I calculate the breadcrumb (a list of fathers) for an geographical object. Since it is not going to change very often, I am thinking of pre calculating it once the object is saved or initial
I have the following models class Database(models.Model): user = models.ForeignKey(User) name = models.CharField(max_length=100)
Is there a way to create a form from profile models ? For example... If I have this model as profile: class blogger(models.Model):
I h开发者_开发问答ave two related models (one to many) in my django app and When I do something like this
I\'ve got a model like this: class Talk(BaseModel): title= models.CharField(max_length=200) mp3= models.FileField(upload_to = u\'talks/\', max_length=200)
In my views i have the date in the following format s_date=20090106 and e_date=20100106 The model is defined as
I\'m having some trouble figuring out the best/Djangoic way to do this. I\'m creating something like an interactive textbook. It has modules, which are more or less like chapters. Each module page nee
I have a main class with a category property and several subclasses. I\'d like to set the default category for each subclass. For example: