You can simply use (form.Modelform) if you are using django model form,
Or (forms.Form) if you are using html forms
On Sun, Nov 21, 2021, 07:48 Peter of the Norse <rahmcoff@gmail.com> wrote:
CommentForm inherits from both ModelForm and "forms". I don't know what "forms" is, but PEP-8 says all classes should be capitalized. If forms is a base class that has already defined Meta, then you need to have CommentForm's extend it. So change the line to class Meta(forms.Meta):--On Oct 28, 2021, at 8:18 PM, Sabbir Hasan Munna <sabbirhasan2999@gmail.com> wrote:
<Annotation 2021-10-29 081743.png>--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f7d8a010-0f68-437c-b3df-ec99a4460aafn%40googlegroups.com.
<Annotation 2021-10-29 081743.png>
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/E4AE72BA-48B0-4AD8-9D63-4AE9663F7C10%40gmail.com.
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2Ykc4qRxn8%3DNaSCtdKE1GykCJLS0J%3DiNsGc33GC%2BQehM2-jQ%40mail.gmail.com.
No comments:
Post a Comment