diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py
index 3c58873..fce5269 100644
a
|
b
|
class Field(object):
|
226 | 226 | unique = property(unique) |
227 | 227 | |
228 | 228 | def set_attributes_from_name(self, name): |
229 | | self.name = name |
| 229 | if not self.name: |
| 230 | self.name = name |
230 | 231 | self.attname, self.column = self.get_attname_column() |
231 | | if self.verbose_name is None and name: |
232 | | self.verbose_name = name.replace('_', ' ') |
| 232 | if self.verbose_name is None and self.name: |
| 233 | self.verbose_name = self.name.replace('_', ' ') |
233 | 234 | |
234 | 235 | def contribute_to_class(self, cls, name): |
235 | 236 | self.set_attributes_from_name(name) |