Commit baef2b64 authored by Christopher Jorge Chan's avatar Christopher Jorge Chan

yes

parents 929f4082 79241fd7
# Generated by Django 3.2.12 on 2022-05-18 03:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('assignments', '0006_assignment_passing_score'),
]
operations = [
migrations.AlterField(
model_name='course',
name='course_code',
field=models.CharField(max_length=10, unique=True),
),
migrations.AlterField(
model_name='course',
name='course_title',
field=models.CharField(max_length=500, unique=True),
),
]
from django import forms
from .models import WidgetUser, Department
class AddUserForm(forms.ModelForm):
class Meta:
model = WidgetUser
fields = '__all__'
\ No newline at end of file
# Generated by Django 4.0.3 on 2022-05-22 14:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homepage', '0004_widgetuser_department'),
]
operations = [
migrations.AddField(
model_name='widgetuser',
name='pfp',
field=models.ImageField(default='userpfp/default.png', upload_to='userpfp/'),
),
]
body{
font-size: 1.15em;
}
\ No newline at end of file
{%extends "homepage/base.html" %}
{%load static%}
{%block body%}
<link rel="stylesheet" type="text/css" href="{%static 'homepage/css/home.css'%}">
<div class="container main">
<form method="POST" action="{%url 'adduser'%}" enctype="multipart/form-data">
{%csrf_token%}
<p> Profile pictures must have this file name format: "user_id.png".</p>
{{form.as_p}}
<input type='submit' value='Add User'>
</form>
<a href="{%url 'homepage'%}"> Return to Homepage </a>
</div>
{%endblock%}
\ No newline at end of file
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