Skip to content

Commit 7385aca

Browse files
committed
🧁 Code NewsLinkForm to manage NewsLinks
1 parent b07280a commit 7385aca

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/organizer/forms.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from django.core.exceptions import ValidationError
33
from django.forms import ModelForm
44

5-
from .models import Startup, Tag
5+
from .models import NewsLink, Startup, Tag
66

77

88
class LowercaseNameMixin:
@@ -49,3 +49,11 @@ class StartupForm(
4949
class Meta:
5050
model = Startup
5151
fields = "__all__"
52+
53+
54+
class NewsLinkForm(ModelForm):
55+
"""HTML form for NewsLink objects"""
56+
57+
class Meta:
58+
model = NewsLink
59+
fields = "__all__"

0 commit comments

Comments
 (0)