Opened 13 years ago
Last modified 13 years ago
#18324 closed Bug
QuerySet values method fails — at Initial Version
Reported by: | anonymous | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 1.4 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
class SomeModel(models.Model):
field1 = models.CharField(max_length=100, blank=True, null=True, default=)
field2 = models.CharField(max_length=100, blank=True, null=True, default=)
field3 = models.CharField(max_length=100, blank=True, null=True, default=)
class Meta:
db_table = 'some_model'
ordering = field1 # Caused by this line
#
# SomeModel.objects.values('field1') # sql: select field1, field2, field3, from some_model
#
Note:
See TracTickets
for help on using tickets.