I have the following structure: class A(models.Model): a = models.ForeignKey(B, unique=True) b = models.IntegerField(default=0, blank=True)
I need to store about 20 params for the client side JS. Each user has his own params in the DB. it is possible that some new params might be added in the future while some may be removed. I\'m a littl
I have a model with two foreign keys to create many to many relationship - I am not using many to many field in Django
I\'m trying to find the cumulated duration of some events, \'start\' and \'end\' field are both django.db.models.DateTimeField fields.
I have a data structure th开发者_开发知识库at looks like this [{\'name\': \'sfsdf sdfsdf\', \'id\': \'621205528\'},
Update: Reading directly the django source code i got one undocumented missing piece to solve my problem. Thanks to Brandon that solved half of the problem by giving me one of the开发者_如何学编程 mis
How would you go about modifying the fields in the Django User Model to be required? I\'d like a User to require that a name and email address be entered at the time of creation, but I\'m not sure ho
I have Model class Account: and other model called class Transactions: Now i have field interest_rate in Account Model.
In my web django, I do a query of Models.objects.all() or actually any other models in the views.py. It returns me a [,] value (empty array) - view from logs. However back in the manage.py shell, it i
I have two models class Employer(models.Model): name = models.CharField(max_length=300, blank=False) id = models.IntegerField()