from django import forms
from django.core.exceptions import ValidationError
class SearchProduct(forms.Form):
text=forms.CharField(label='Search ')
date=forms.DateField(required=False)
t = SearchProduct()
print(t.date)
Error:
AttributeError: 'SearchProduct' object has no attribute 'date'
On 27 Apr 2020, at 10:29, DimGo <proskur...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/445e0ffb-03e7-4a32-9d83-b48795a9866c%40googlegroups.com.


Code was changed a bit, but the main problem is same
This is my html:

