aboutsummaryrefslogtreecommitdiff
path: root/linaro_django_xmlrpc/forms.py
diff options
context:
space:
mode:
authorNeil Williams <neil.williams@linaro.org>2014-05-09 13:57:38 +0100
committerNeil Williams <neil.williams@linaro.org>2014-05-09 13:57:38 +0100
commitcc4a1f3b87745505005805e68deb9164067f3b88 (patch)
treefc781b8f3b09165f3444ad96e5436522b7b1a322 /linaro_django_xmlrpc/forms.py
parent3507ebe965a5c9f6e56476df27e1d1e2442a1844 (diff)
Merge linaro-django-xmlrpc into lava-server
Add the xmlrpc tests to ci-run Remove dependency on linaro-django-xmlrpc in setup.py Upgrade xmlrpc tests for Django1.6 Change-Id: I555118ad7c4205a6a71f17a41e6fa77613bc57ec
Diffstat (limited to 'linaro_django_xmlrpc/forms.py')
-rw-r--r--linaro_django_xmlrpc/forms.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/linaro_django_xmlrpc/forms.py b/linaro_django_xmlrpc/forms.py
new file mode 100644
index 000000000..abaa4c198
--- /dev/null
+++ b/linaro_django_xmlrpc/forms.py
@@ -0,0 +1,30 @@
+# Copyright (C) 2010, 2011 Linaro Limited
+#
+# Author: Zygmunt Krynicki <zygmunt.krynicki@linaro.org>
+#
+# This file is part of linaro-django-xmlrpc.
+#
+# linaro-django-xmlrpc is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License version 3
+# as published by the Free Software Foundation
+#
+# linaro-django-xmlrpc is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with linaro-django-xmlrpc. If not, see <http://www.gnu.org/licenses/>.
+
+"""
+Forms
+"""
+
+from django import forms
+from linaro_django_xmlrpc.models import AuthToken
+
+
+class AuthTokenForm(forms.ModelForm):
+ class Meta:
+ model = AuthToken
+ fields = ('description',)