Answers for "django.core.exceptions.FieldError: 'date' cannot be specified for Forum model form as it is a non-editable field"

0

django.core.exceptions.FieldError: 'date' cannot be specified for Forum model form as it is a non-editable field

from django.utils import timezone
# change date = models.DateField(auto_now_add=True) to this one:
date = models.DateTimeField(default=timezone.now)
Posted by: Guest on December-05-2020

Code answers related to "django.core.exceptions.FieldError: 'date' cannot be specified for Forum model form as it is a non-editable field"

Python Answers by Framework

Browse Popular Code Answers by Language