Opened 19 years ago
Closed 19 years ago
#1159 closed defect (fixed)
[magic-removal] NameError in django.models.db.fields: global name 'f' is not defined
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | magic-removal |
Severity: | normal | Keywords: | NameError model fields validation |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In magic-removal, I get a NameError
exception stating that "global name 'f' is not defined."
This occurs at line 278 of django/models/db/fields/__init__.py
, in get_validator_unique_lookup_type
.
The exception occurs when I attempt to update a model via the admin interface. The model has the
following fields:
name = models.CharField(maxlength=80, unique=True) distance = models.FloatField(max_digits=3, decimal_places=1) description = models.TextField(null=True, blank=True)
Change History (3)
comment:1 by , 19 years ago
Summary: | NameError in django.models.db.fields: global name 'f' is not defined → [magic-removal] NameError in django.models.db.fields: global name 'f' is not defined |
---|
comment:3 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Changed summary to flag more clearly that this issue occurs in the magic-removal branch.