demo-hackernews-with-django.../app/web/forms.py

11 lines
210 B
Python
Raw Normal View History

2021-06-25 14:25:14 +02:00
from django import forms
class NewsForm(forms.Form):
title = forms.CharField(
label='Titulo',
required=True
)
url = forms.URLField(
label='Ruta',
required=True
)