# Path: apply/models.py
# class Organization(models.Model):
#     title = models.CharField(max_length=255)
#     website = models.CharField(max_length=255, null=True, blank=True)
#     email = models.EmailField(null=True, blank=True)
#     tag = models.SlugField(max_length=255, null=True, blank=True)
#     phone = models.CharField(max_length=255, null=True, blank=True)
#     users = models.ManyToManyField(User, blank=True)
# 
#     class Meta:
#         verbose_name = _("organization")
#         verbose_name_plural = _("organizations")
#         ordering = ["title"]
# 
#     def __unicode__(self):
#         return self.title


from django import forms
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.forms import PasswordResetForm
from registration.forms import RegistrationFormUniqueEmail as _RegistrationForm
from apply.models import Organization
from nocaptcha_recaptcha.fields import NoReCaptchaField
# -*- coding: utf-8 -*- vim:fileencoding=utf-8:
# Copyright (C) 2010-2014 GRNET S.A.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program 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 General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#


class RegistrationForm(_RegistrationForm):
    name = forms.CharField()
    surname = forms.CharField()
    phone = forms.CharField(required=False)
    organization = forms.ModelChoiceField(

# Path: apply/models.py
# class Organization(models.Model):
#     title = models.CharField(max_length=255)
#     website = models.CharField(max_length=255, null=True, blank=True)
#     email = models.EmailField(null=True, blank=True)
#     tag = models.SlugField(max_length=255, null=True, blank=True)
#     phone = models.CharField(max_length=255, null=True, blank=True)
#     users = models.ManyToManyField(User, blank=True)
# 
#     class Meta:
#         verbose_name = _("organization")
#         verbose_name_plural = _("organizations")
#         ordering = ["title"]
# 
#     def __unicode__(self):
#         return self.title


# Path: accounts/forms.py
from django import forms
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.forms import PasswordResetForm
from registration.forms import RegistrationFormUniqueEmail as _RegistrationForm
from apply.models import Organization
from nocaptcha_recaptcha.fields import NoReCaptchaField

# -*- coding: utf-8 -*- vim:fileencoding=utf-8:
# Copyright (C) 2010-2014 GRNET S.A.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program 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 General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#


class RegistrationForm(_RegistrationForm):
    name = forms.CharField()
    surname = forms.CharField()
    phone = forms.CharField(required=False)
    organization = forms.ModelChoiceField(

        queryset=Organization.objects.all(),