Opened 10 years ago

Closed 10 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
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: UI/UX:

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 Changed 10 years ago by django-nick@…

  • Summary changed from NameError in django.models.db.fields: global name 'f' is not defined to [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 Changed 10 years ago by adrian

  • Version set to magic-removal

Changed version to magic-removal.

comment:3 Changed 10 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

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

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