﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
1159	[magic-removal] NameError in django.models.db.fields: global name 'f' is not defined	django-nick@…	Adrian Holovaty	"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)
}}}"	defect	closed	Database layer (models, ORM)	magic-removal	normal	fixed	NameError model fields validation		Unreviewed	0	0	0	0	0	0
