mirror of
https://github.com/django/django.git
synced 2025-10-25 14:46:09 +00:00
[1.2.X] Fixed #14999 -- Ensure that filters on local fields are allowed, and aren't caught as a security problem. Thanks to medhat for the report.
Backport of r15139 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15140 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -173,6 +173,7 @@ class Person(models.Model):
|
||||
)
|
||||
name = models.CharField(max_length=100)
|
||||
gender = models.IntegerField(choices=GENDER_CHOICES)
|
||||
age = models.IntegerField(default=21)
|
||||
alive = models.BooleanField()
|
||||
|
||||
def __unicode__(self):
|
||||
|
||||
Reference in New Issue
Block a user