This should be really simple, I could do it without thinking on traditional SQL but can\'t get it with Django models!
Preface: I have two models (Product and UserProfile) and I would to implement a mine comments system. The comment is related to an object, Product or UserProfile.
I\'m trying to use django-evolution to modify some models from an existing project.Now when I go a syncdb it says that I need to do a \'evolve\'.
I have clients and contacts, and each client can have any number of contacts and each contact can have any number of types. For example, client 1 can have two billing contacts, person A and person B,
I have the following scenario. class A(models.Model): a = models.IntegerField() class B(models.Model): c = models.OneToOneField(A)
I have one model and I\'ve created a form out of the model using ModelForm.Now, I want to spread the form across two pages.For example, the first three fields will appear on the first page then the us
In Django i have a model that represents an image with a description that has Foreign Key to another model, this model uses an StdImageField to save the image and auto create a thumbnail. This model a
In my application I have a model called Produ开发者_C百科ct. Every time a user adds new product should be upload a profile image for that product.
So, I\'m new to Django and this has become a major headache.So I\'m trying to create an extended user profile a la the documentation.However, when I attempt to post an entry through the form I receive
I dont want to s开发者_StackOverflowhow the recent action widget in django admin site.I don\'t know how to get this done.you can override the admin/index.html template to disable the display. There\'s