1
0
Fork 0
mirror of https://github.com/Findus23/RPGnotes.git synced 2024-09-19 15:43:45 +02:00
RPGnotes/campaigns/forms.py

12 lines
234 B
Python
Raw Normal View History

2021-08-29 13:58:21 +02:00
from django import forms
from campaigns.models import Campaign
2021-08-29 13:58:21 +02:00
class CampaignForm(forms.ModelForm):
2021-08-29 13:58:21 +02:00
name = forms.CharField(widget=forms.TextInput)
class Meta:
model = Campaign
fields = ["name", "language"]