- name = models.CharField(max_length=255)
- url = models.URLField(blank=True)
- key = models.CharField(max_length=255, blank=True)
- uses_ssh = models.BooleanField(default=False)
- groups = models.ManyToManyField('auth.Group', blank=True)
- users = models.ManyToManyField(settings.AUTH_USER_MODEL, blank=True)
+ name = models.CharField(_('name'), max_length=255)
+ url = models.URLField(_('URL'), blank=True)
+ key = models.CharField(_('key'), max_length=255, blank=True)
+ uses_ssh = models.BooleanField(_('uses SSH'), default=False)
+
+ for_all = models.BooleanField(_('for all'), default=False)
+ description = models.TextField(_('description'), blank=True)
+ icon = models.FileField(_('icon'), blank=True, upload_to='service/icon')
+
+ groups = models.ManyToManyField('auth.Group', verbose_name=_('groups'), blank=True)
+ users = models.ManyToManyField(settings.AUTH_USER_MODEL, verbose_name=_('users'), blank=True)