| Total Complexity | 1 |
| Total Lines | 13 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | ################################################################# |
||
| 17 | class EntityType(models.Model): |
||
| 18 | """ |
||
| 19 | Model describing the type of an entity. |
||
| 20 | """ |
||
| 21 | |||
| 22 | name = models.CharField(blank=False, max_length=20, unique=True, |
||
| 23 | verbose_name=_(u'Name'), db_index=True) |
||
| 24 | |||
| 25 | xmlname = models.CharField(blank=False, max_length=20, unique=True, |
||
| 26 | verbose_name=_(u'Name in XML'), db_index=True) |
||
| 27 | |||
| 28 | def __unicode__(self): |
||
| 29 | return self.name |
||
| 30 |