# Path: diag_app/models.py
# class Tech(models.Model):
#     experience = models.IntegerField(default=0)
#     job_title = models.CharField(max_length=25)
#     shop = models.CharField(max_length=25)
#     user = models.OneToOneField(User)
#     tech_rating = models.IntegerField(default=0)


from django.contrib.auth.models import User
from django.contrib.auth import authenticate
from django import forms
from .models import Tech


class UserForm(forms.ModelForm):
    password = forms.CharField(widget=forms.PasswordInput)

    class Meta:
        model = User
        fields = ['username', 'password', 'email']


class TechForm(forms.ModelForm):

    class Meta:
        model = Tech
        fields = ['experience', 'job_title', 'shop']



# Path: diag_app/models.py
# class Tech(models.Model):
#     experience = models.IntegerField(default=0)
#     job_title = models.CharField(max_length=25)
#     shop = models.CharField(max_length=25)
#     user = models.OneToOneField(User)
#     tech_rating = models.IntegerField(default=0)


# Path: diag_app/forms.py
from django.contrib.auth.models import User
from django.contrib.auth import authenticate
from django import forms
from .models import Tech



class UserForm(forms.ModelForm):
    password = forms.CharField(widget=forms.PasswordInput)

    class Meta:
        model = User
        fields = ['username', 'password', 'email']


class TechForm(forms.ModelForm):

    class Meta:
        model = Tech
        fields = ['experience', 'job_title', 'shop']



class LoginForm(forms.Form):