create 'new issue' form
This commit is contained in:
parent
0013410ac1
commit
23f3d2a96f
7 changed files with 46 additions and 3 deletions
9
issues/forms.py
Normal file
9
issues/forms.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
from django.forms import ModelForm
|
||||
|
||||
from .models import Issue
|
||||
|
||||
|
||||
class IssueForm(ModelForm):
|
||||
class Meta:
|
||||
model = Issue
|
||||
fields = ['project', 'title', 'text']
|
||||
Reference in a new issue