New
parent
f4bbc9c9cc
commit
0593f7c9e1
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,19 +1,11 @@
|
|||||||
|
from django.contrib.auth.forms import UserCreationForm
|
||||||
from django import forms
|
from django import forms
|
||||||
|
from django.contrib.auth.models import User
|
||||||
from .models import *
|
from .models import *
|
||||||
|
|
||||||
|
|
||||||
class CustomLoginForm(forms.Form):
|
class CustomLoginForm(forms.Form):
|
||||||
username = forms.CharField(label='Username', max_length=150)
|
username = forms.CharField(label='Username', max_length=150)
|
||||||
password = forms.CharField(label='Password', widget=forms.PasswordInput)
|
password = forms.CharField(label='Password', widget=forms.PasswordInput)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class SignUpForm(forms.ModelForm):
|
|
||||||
class Meta:
|
|
||||||
model = CustomerProfile
|
|
||||||
fields = ['first_name', 'last_name', 'email', 'password', 'mobile_number', 'status', 'reference', 'personal_website', 'business']
|
|
||||||
|
|
||||||
|
|
||||||
class StaffSignUpForm(forms.ModelForm):
|
|
||||||
class Meta:
|
|
||||||
model = StaffProfile
|
|
||||||
fields = ['first_name', 'last_name', 'image', 'email', 'mobile_number', 'password', 'staff_position', 'intern', 'active']
|
|
@ -0,0 +1,45 @@
|
|||||||
|
# Generated by Django 4.2.5 on 2024-01-03 13:02
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('osinacore', '0041_dailyreport'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.RemoveField(
|
||||||
|
model_name='customerprofile',
|
||||||
|
name='email',
|
||||||
|
),
|
||||||
|
migrations.RemoveField(
|
||||||
|
model_name='customerprofile',
|
||||||
|
name='first_name',
|
||||||
|
),
|
||||||
|
migrations.RemoveField(
|
||||||
|
model_name='customerprofile',
|
||||||
|
name='last_name',
|
||||||
|
),
|
||||||
|
migrations.RemoveField(
|
||||||
|
model_name='customerprofile',
|
||||||
|
name='password',
|
||||||
|
),
|
||||||
|
migrations.RemoveField(
|
||||||
|
model_name='staffprofile',
|
||||||
|
name='email',
|
||||||
|
),
|
||||||
|
migrations.RemoveField(
|
||||||
|
model_name='staffprofile',
|
||||||
|
name='first_name',
|
||||||
|
),
|
||||||
|
migrations.RemoveField(
|
||||||
|
model_name='staffprofile',
|
||||||
|
name='last_name',
|
||||||
|
),
|
||||||
|
migrations.RemoveField(
|
||||||
|
model_name='staffprofile',
|
||||||
|
name='password',
|
||||||
|
),
|
||||||
|
]
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 59 KiB |
Binary file not shown.
After Width: | Height: | Size: 59 KiB |
Binary file not shown.
After Width: | Height: | Size: 868 KiB |
Loading…
Reference in New Issue