New Feature: added createUser and newUser classes in homepage/views.py and...

New Feature: added createUser and newUser classes in homepage/views.py and created createUser_form.html to allow people to create their own users and save them in the database

Improvement: added foreign key to WidgetUser model in homepage instead of the Department model for ease of access of fields. Also edited urls.py
parent 6f223df6
# Generated by Django 3.2.12 on 2022-05-25 16:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homepage', '0027_alter_widgetuser_profile_pic'),
]
operations = [
migrations.AlterField(
model_name='widgetuser',
name='profile_pic',
field=models.ImageField(blank=True, default='faceless.png', null=True, upload_to=''),
),
]
# Generated by Django 3.2.12 on 2022-05-25 16:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homepage', '0028_alter_widgetuser_profile_pic'),
]
operations = [
migrations.AlterField(
model_name='widgetuser',
name='profile_pic',
field=models.ImageField(blank=True, default='static/faceless.png', null=True, upload_to=''),
),
]
# Generated by Django 3.2.12 on 2022-05-25 16:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homepage', '0029_alter_widgetuser_profile_pic'),
]
operations = [
migrations.AlterField(
model_name='department',
name='dept_name',
field=models.CharField(default='none', max_length=50, null=True),
),
migrations.AlterField(
model_name='department',
name='home_unit',
field=models.CharField(default='none', max_length=50, null=True),
),
]
# Generated by Django 3.2.12 on 2022-05-25 16:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('homepage', '0030_auto_20220525_1935'),
]
operations = [
migrations.RemoveField(
model_name='department',
name='widgetuser',
),
migrations.AddField(
model_name='widgetuser',
name='department',
field=models.ForeignKey(default='1', on_delete=django.db.models.deletion.CASCADE, to='homepage.department'),
),
]
# Generated by Django 3.2.12 on 2022-05-25 17:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homepage', '0031_auto_20220525_1943'),
]
operations = [
migrations.AlterField(
model_name='widgetuser',
name='profile_pic',
field=models.ImageField(blank=True, default='faceless.png', null=True, upload_to=''),
),
]
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment