Opened 18 years ago

Closed 18 years ago

#1159 closed defect (fixed)

[magic-removal] NameError in django.models.db.fields: global name 'f' is not defined

Reported by: django-nick@… 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 django-nick@…, 18 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

Changed summary to flag more clearly that this issue occurs in the magic-removal branch.

comment:2 by Adrian Holovaty, 18 years ago

Version: magic-removal

Changed version to magic-removal.

comment:3 by Adrian Holovaty, 18 years ago

Resolution: fixed
Status: newclosed

(In [1828]) magic-removal: Fixed #1159 -- Fixed error in 'unique' manipulator validator

Note: See TracTickets for help on using tickets.
Back to Top