mirror of https://github.com/django/django.git
Removed unused code.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2860 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
7a62bac56e
commit
d09ae12632
|
@ -138,11 +138,6 @@ class Field(object):
|
||||||
if self.choices:
|
if self.choices:
|
||||||
setattr(cls, 'get_%s_display' % self.name, curry(cls._get_FIELD_display, field=self))
|
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):
|
def get_attname(self):
|
||||||
return self.name
|
return self.name
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue