mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #31783 -- Fixed crash when filtering againts "negate" field.
Thanks Simon Charette for the initial patch.
This commit is contained in:
parent
b6dfdaff33
commit
9c9a3fe118
3 changed files with 16 additions and 8 deletions
|
@ -42,6 +42,7 @@ class Note(models.Model):
|
|||
note = models.CharField(max_length=100)
|
||||
misc = models.CharField(max_length=10)
|
||||
tag = models.ForeignKey(Tag, models.SET_NULL, blank=True, null=True)
|
||||
negate = models.BooleanField(default=True)
|
||||
|
||||
class Meta:
|
||||
ordering = ['note']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue