# Path: whatistheplan/models/userprofile.py
# class UserProfile(models.Model):
#     """
#     user -> (Django built-in User class)
#     name -> Eugene M'TnDew
#     steamid -> dyladan
#     """
#     user = models.OneToOneField(User, primary_key=True)
#     name = models.CharField(max_length=256, unique=False)
#     steamid = models.CharField(max_length=256)
#     irc = models.CharField(max_length=256, unique=False)
#     mac_address = models.CharField(max_length=256, unique=False)


from whatistheplan.models import UserProfile
from django.contrib.auth.models import User
from django import forms
"""Forms for use in whatistheplan"""
#pylint: disable=no-init, old-style-class, too-few-public-methods

class UserForm(forms.ModelForm):
    """Form for user signup"""
    password = forms.CharField(widget=forms.PasswordInput())
    class Meta: #pylint: disable=missing-docstring
        model = User
        fields = (
            'username',
            'password',
            'email'
        )

class UserProfileForm(forms.ModelForm):
    """Form for user profile"""
    class Meta: #pylint: disable=missing-docstring

# Path: whatistheplan/models/userprofile.py
# class UserProfile(models.Model):
#     """
#     user -> (Django built-in User class)
#     name -> Eugene M'TnDew
#     steamid -> dyladan
#     """
#     user = models.OneToOneField(User, primary_key=True)
#     name = models.CharField(max_length=256, unique=False)
#     steamid = models.CharField(max_length=256)
#     irc = models.CharField(max_length=256, unique=False)
#     mac_address = models.CharField(max_length=256, unique=False)


# Path: whatistheplan/forms.py
from whatistheplan.models import UserProfile
from django.contrib.auth.models import User
from django import forms

"""Forms for use in whatistheplan"""
#pylint: disable=no-init, old-style-class, too-few-public-methods

class UserForm(forms.ModelForm):
    """Form for user signup"""
    password = forms.CharField(widget=forms.PasswordInput())
    class Meta: #pylint: disable=missing-docstring
        model = User
        fields = (
            'username',
            'password',
            'email'
        )

class UserProfileForm(forms.ModelForm):
    """Form for user profile"""
    class Meta: #pylint: disable=missing-docstring

        model = UserProfile