cheesy/moku/forms/post.py
2024-03-25 21:46:47 +00:00

17 lines
440 B
Python

from django.forms import ModelForm
from django.utils.translation import gettext_lazy as _
from moku.models import Post
class PostForm(ModelForm):
class Meta:
model = Post
fields = ("emoji", "verb", "food", "recipe", "image")
labels = {
"emoji": _("emoji"),
"verb": _("verb"),
"food": _("food"),
"recipe": _("recipe"),
"image": _("image"),
}