mirror of
https://github.com/boostorg/website-v2.git
synced 2026-02-27 17:42:08 +00:00
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
9 lines
167 B
Python
9 lines
167 B
Python
from django import forms
|
|
from .models import Entry
|
|
|
|
|
|
class EntryForm(forms.ModelForm):
|
|
class Meta:
|
|
model = Entry
|
|
fields = ["title", "description"]
|