Files
website-v2/news/forms.py
Natalia 18f6eb3e67 Provide News creation and approval views.
More for #273: this branch provides a new form and view to create news (limited
to authenticated users). For now, every new entry, requires moderation. Approval
can be done via the web UI when visiting a news detail page and having the right
permissions.

Next branch would provide:
* moderator whitelisting
* news list needing moderation view
* email sending on news submission

Missing tests
2023-05-18 20:12:44 -03:00

9 lines
167 B
Python

from django import forms
from .models import Entry
class EntryForm(forms.ModelForm):
class Meta:
model = Entry
fields = ["title", "description"]