Commit fd2fd8e6 authored by Charles Lim's avatar Charles Lim

Chaned homepage model to change object names.

parent 792cebf9
......@@ -6,8 +6,12 @@ class Department(models.Model):
dept_name = models.CharField(max_length=100)
home_unit = models.CharField(max_length=100)
def __str__(self):
return self.dept_name + ", " + self.home_unit
# Model for Widget User
class WidgetUser(models.Model):
first_name = models.CharField(max_length=100)
middle_name = models.CharField(max_length=100)
......
label {
font-family: Khula;
font-weight: 600;
}
input {
font-family: Khula;
}
p {
margin: 30px 0px;
}
\ No newline at end of file
......@@ -13,5 +13,9 @@
{% endblock %}
{% block content %}
{{form.as_p}}
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Submit">
</form>
{% endblock %}
\ No newline at end of file
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