# Path: apps/ot/models/user.py
# class Freshman(models.Model):
#     def __str__(self):
#         return self.user.username
# 
#     user = models.OneToOneField(User, related_name='freshman')
#     voted_clubs = models.ManyToManyField(Club, related_name='votes')
# 
#     sizes = (
#         ('S', 'S'),
#         ('M', 'M'),
#         ('L', 'L'),
#         ('XL', 'XL'),
#         ('2XL', '2XL'),
#         ('3XL', '3XL'),
#     )
#     tsize = models.CharField(null=False, max_length=5, choices=sizes)
# 
#     BAND_VOTE_LIMIT = 4
#     NON_BAND_VOTE_LIMIT = 3
# 
#     def vote_limit_exceeded(self, is_band):
#         return self.voted_clubs.filter(is_band=is_band).count() > 5


from django.forms import ModelForm
from .models.user import Freshman


class TSizeForm(ModelForm):
    class Meta:
        model = Freshman

# Path: apps/ot/models/user.py
# class Freshman(models.Model):
#     def __str__(self):
#         return self.user.username
# 
#     user = models.OneToOneField(User, related_name='freshman')
#     voted_clubs = models.ManyToManyField(Club, related_name='votes')
# 
#     sizes = (
#         ('S', 'S'),
#         ('M', 'M'),
#         ('L', 'L'),
#         ('XL', 'XL'),
#         ('2XL', '2XL'),
#         ('3XL', '3XL'),
#     )
#     tsize = models.CharField(null=False, max_length=5, choices=sizes)
# 
#     BAND_VOTE_LIMIT = 4
#     NON_BAND_VOTE_LIMIT = 3
# 
#     def vote_limit_exceeded(self, is_band):
#         return self.voted_clubs.filter(is_band=is_band).count() > 5


# Path: apps/ot/forms.py
from django.forms import ModelForm
from .models.user import Freshman



class TSizeForm(ModelForm):
    class Meta:
        model = Freshman

        fields = ("tsize",)