Revision 213ba781 snf-astakos-app/astakos/im/models.py
b/snf-astakos-app/astakos/im/models.py | ||
---|---|---|
1000 | 1000 |
description = models.CharField(_('Description'), max_length=80) |
1001 | 1001 |
|
1002 | 1002 |
def __str__(self): |
1003 |
return self.policy
|
|
1003 |
return self.description.capitalize()
|
|
1004 | 1004 |
|
1005 | 1005 |
class MemberLeavePolicy(models.Model): |
1006 | 1006 |
policy = models.CharField(_('Policy'), max_length=255, unique=True, db_index=True) |
1007 | 1007 |
description = models.CharField(_('Description'), max_length=80) |
1008 | 1008 |
|
1009 | 1009 |
def __str__(self): |
1010 |
return self.policy
|
|
1010 |
return self.description.capitalize()
|
|
1011 | 1011 |
|
1012 | 1012 |
def synced_model_metaclass(class_name, class_parents, class_attributes): |
1013 | 1013 |
|
... | ... | |
1141 | 1141 |
blank=True, |
1142 | 1142 |
db_index=True) |
1143 | 1143 |
|
1144 |
name = models.CharField(max_length=80, help_text=" The Project's name should be in a domain format. The domain shouldn't neccessarily exist in the real world but is helpful to imply a structure. e.g.: myproject.mylab.ntua.gr or myservice.myteam.myorganization ",)
|
|
1144 |
name = models.CharField(max_length=80, help_text="The Project's name should be in a domain format. The domain shouldn't neccessarily exist in the real world but is helpful to imply a structure. e.g.: myproject.mylab.ntua.gr or myservice.myteam.myorganization ",) |
|
1145 | 1145 |
homepage = models.URLField(max_length=255, null=True, |
1146 | 1146 |
blank=True,help_text="This should be a URL pointing at your project's site. e.g.: http://myproject.com ",) |
1147 | 1147 |
description = models.TextField(null=True, blank=True,help_text= "Please provide a short but descriptive abstract of your Project, so that anyone searching can quickly understand what this Project is about. ") |
Also available in: Unified diff