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

22 lines
530 B
Python
Raw Normal View History

2021-08-22 20:10:29 +02:00
from django.forms import ModelForm
from notes.models import Campaign, Loot, Character
class CampaignForm(ModelForm):
class Meta:
model = Campaign
fields = "__all__"
class LootForm(ModelForm):
class Meta:
model = Loot
fields = ["name", "description_md", "quantity", "value_gold", "owner", "magic_item"]
class CharacterForm(ModelForm):
class Meta:
model = Character
fields = ["name", "description_md", "subtitle", "player", "faction", "location", "color", "image"]