~ubuntu-branches/debian/jessie/lava-server/jessie

« back to all changes in this revision

Viewing changes to linaro_django_xmlrpc/forms.py

  • Committer: Package Import Robot
  • Author(s): Neil Williams
  • Date: 2014-06-29 19:29:34 UTC
  • Revision ID: package-import@ubuntu.com-20140629192934-ue8hrzzpye9isevt
Tags: upstream-2014.05.30.09
ImportĀ upstreamĀ versionĀ 2014.05.30.09

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2010, 2011 Linaro Limited
 
2
#
 
3
# Author: Zygmunt Krynicki <zygmunt.krynicki@linaro.org>
 
4
#
 
5
# This file is part of linaro-django-xmlrpc.
 
6
#
 
7
# linaro-django-xmlrpc is free software: you can redistribute it and/or modify
 
8
# it under the terms of the GNU Affero General Public License version 3
 
9
# as published by the Free Software Foundation
 
10
#
 
11
# linaro-django-xmlrpc is distributed in the hope that it will be useful,
 
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
# GNU General Public License for more details.
 
15
#
 
16
# You should have received a copy of the GNU Affero General Public License
 
17
# along with linaro-django-xmlrpc.  If not, see <http://www.gnu.org/licenses/>.
 
18
 
 
19
"""
 
20
Forms
 
21
"""
 
22
 
 
23
from django import forms
 
24
from linaro_django_xmlrpc.models import AuthToken
 
25
 
 
26
 
 
27
class AuthTokenForm(forms.ModelForm):
 
28
    class Meta:
 
29
        model = AuthToken
 
30
        fields = ('description',)