From d09ae12632cb8e3f4a82e4e4a0e368d636176f3c Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Sat, 6 May 2006 18:47:28 +0000 Subject: [PATCH] Removed unused code. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2860 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/models/fields/__init__.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py index 023d505eec..334aa01766 100644 --- a/django/db/models/fields/__init__.py +++ b/django/db/models/fields/__init__.py @@ -138,11 +138,6 @@ class Field(object): 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