# Path: hackday/users/models.py
# class Tshirt(models.Model):
# 
#     description = models.CharField(max_length=50, unique=True)
# 
#     create_date = models.DateTimeField('date ceated', auto_now_add=True)
#     mod_date = models.DateTimeField('date modified', auto_now=True)
# 
#     def __unicode__(self):
#         return self.description
# 
# class Diet(models.Model):
# 
#     description = models.CharField(max_length=50, unique=True)
# 
#     create_date = models.DateTimeField('date ceated', auto_now_add=True)
#     mod_date = models.DateTimeField('date modified', auto_now=True)
# 
#     def __unicode__(self):
#         return self.description
# 
# class Location(models.Model):
# 
#     description = models.CharField(max_length=50, unique=True)
# 
#     create_date = models.DateTimeField('date ceated', auto_now_add=True)
#     mod_date = models.DateTimeField('date modified', auto_now=True)
# 
#     def __unicode__(self):
#         return self.description


from django import forms
from django.contrib.localflavor.us import forms as us_forms
from hackday.users.models import Tshirt, Diet, Location
    required_css_class = 'required'

    user_name = forms.SlugField(label='User Name',
            error_messages=USERNAME_MESSAGES)
    password = forms.CharField(label='Password', widget=forms.PasswordInput,
                               error_messages=PASSWORD_MESSAGES)
    next = forms.CharField(label='Next URL', widget=forms.HiddenInput)


class UserProfileForm(forms.Form):
    required_css_class = 'required'

    first_name = forms.CharField(label='First Name',
                                 error_messages=FIRST_NAME_MESSAGES)
    last_name = forms.CharField(label='Last Name',
                                error_messages=LAST_NAME_MESSAGES)
    email = forms.EmailField(label='Email Address',
                             error_messages=EMAIL_MESSAGES)
    alternate_email = forms.EmailField(label='Alternate Email Address (voting)', required=False,
                                       error_messages=ALTERNATE_EMAIL_MESSAGES)
    phone = us_forms.USPhoneNumberField(label="Mobile Phone (voting)", required=False,
                                        error_messages=PHONE_MESSAGES)
    tshirt = forms.ModelChoiceField(label='T-Shirt Size',
                                    error_messages=SHIRT_MESSAGES,
                                    queryset=Tshirt.objects.all())
    diet = forms.ModelChoiceField(label='Dietary Preference',
                                  error_messages=DIET_MESSAGES,
                                  queryset=Diet.objects.all())
    location = forms.ModelChoiceField(label='Location',
                                      error_messages=LOCATION_MESSAGES,

# Path: hackday/users/models.py
# class Tshirt(models.Model):
# 
#     description = models.CharField(max_length=50, unique=True)
# 
#     create_date = models.DateTimeField('date ceated', auto_now_add=True)
#     mod_date = models.DateTimeField('date modified', auto_now=True)
# 
#     def __unicode__(self):
#         return self.description
# 
# class Diet(models.Model):
# 
#     description = models.CharField(max_length=50, unique=True)
# 
#     create_date = models.DateTimeField('date ceated', auto_now_add=True)
#     mod_date = models.DateTimeField('date modified', auto_now=True)
# 
#     def __unicode__(self):
#         return self.description
# 
# class Location(models.Model):
# 
#     description = models.CharField(max_length=50, unique=True)
# 
#     create_date = models.DateTimeField('date ceated', auto_now_add=True)
#     mod_date = models.DateTimeField('date modified', auto_now=True)
# 
#     def __unicode__(self):
#         return self.description


# Path: hackday/users/forms.py
from django import forms
from django.contrib.localflavor.us import forms as us_forms
from hackday.users.models import Tshirt, Diet, Location

    required_css_class = 'required'

    user_name = forms.SlugField(label='User Name',
            error_messages=USERNAME_MESSAGES)
    password = forms.CharField(label='Password', widget=forms.PasswordInput,
                               error_messages=PASSWORD_MESSAGES)
    next = forms.CharField(label='Next URL', widget=forms.HiddenInput)


class UserProfileForm(forms.Form):
    required_css_class = 'required'

    first_name = forms.CharField(label='First Name',
                                 error_messages=FIRST_NAME_MESSAGES)
    last_name = forms.CharField(label='Last Name',
                                error_messages=LAST_NAME_MESSAGES)
    email = forms.EmailField(label='Email Address',
                             error_messages=EMAIL_MESSAGES)
    alternate_email = forms.EmailField(label='Alternate Email Address (voting)', required=False,
                                       error_messages=ALTERNATE_EMAIL_MESSAGES)
    phone = us_forms.USPhoneNumberField(label="Mobile Phone (voting)", required=False,
                                        error_messages=PHONE_MESSAGES)
    tshirt = forms.ModelChoiceField(label='T-Shirt Size',
                                    error_messages=SHIRT_MESSAGES,
                                    queryset=Tshirt.objects.all())
    diet = forms.ModelChoiceField(label='Dietary Preference',
                                  error_messages=DIET_MESSAGES,
                                  queryset=Diet.objects.all())
    location = forms.ModelChoiceField(label='Location',
                                      error_messages=LOCATION_MESSAGES,

                                      queryset=Location.objects.all())