Total Complexity | 1 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | ########################################################################## |
||
17 | class EntityCategory(models.Model): |
||
18 | """ |
||
19 | Description of an entity category as defined in SAML here: |
||
20 | http://macedir.org/draft-macedir-entity-category-00.html |
||
21 | """ |
||
22 | category_id = models.CharField(verbose_name='Entity category ID', |
||
23 | max_length=1000, |
||
24 | blank=False, null=False, |
||
25 | help_text=_(u'The ID of the entity category')) |
||
26 | |||
27 | name = models.CharField(verbose_name='Entity category name', |
||
28 | max_length=1000, |
||
29 | blank=True, null=True, |
||
30 | help_text=_(u'The name of the entity category')) |
||
31 | |||
32 | def __unicode__(self): |
||
33 | return self.name or self.category_id |
||
34 |