Added forms.py

parent f7b2fc0a
from django import forms
from .models import Department, WidgetUser
class DepartmentForm(forms.ModelForm):
class Meta:
model = Department
fields = '__all__'
class WidgetUserForm(forms.ModelForm):
class Meta:
model = WidgetUser
fields = '__all__'
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{% block title %} title {% endblock %}</title>
</head>
<h1>{% block header %} header {% endblock %}
</h1>
<body>
{% block body %} body {% endblock %}
</body>
</html>
\ 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