Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed unused code.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2860 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d09ae12632cb8e3f4a82e4e4a0e368d636176f3c 1 parent 7a62bac
Luke Plant spookylukey authored
Showing with 0 additions and 5 deletions.
  1. +0 −5 django/db/models/fields/__init__.py
5 django/db/models/fields/__init__.py
View
@@ -138,11 +138,6 @@ def contribute_to_class(self, cls, name):
if self.choices:
setattr(cls, 'get_%s_display' % self.name, curry(cls._get_FIELD_display, field=self))
- def set_name(self, name):
- self.name = name
- self.verbose_name = self.verbose_name or name.replace('_', ' ')
- self.attname, self.column = self.get_attname_column()
-
def get_attname(self):
return self.name
Please sign in to comment.
Something went wrong with that request. Please try again.