django-orchestra/orchestra/apps/saas/services/gitlab.py

16 lines
446 B
Python
Raw Normal View History

2014-09-26 19:21:09 +00:00
from django import forms
from django.utils.translation import ugettext_lazy as _
from .options import SoftwareService, SoftwareServiceForm
class GitLabForm(SoftwareServiceForm):
project_name = forms.CharField(label=_("Project name"), max_length=64)
2014-09-26 21:24:23 +00:00
email = forms.CharField(label=_("Email"), max_length=64)
2014-09-26 19:21:09 +00:00
class GitLabService(SoftwareService):
verbose_name = "GitLab"
form = GitLabForm
2014-09-26 21:24:23 +00:00
description_field = 'project_name'