TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases

2,070 views
Skip to first unread message

Sabbir Hasan Munna

unread,
Oct 29, 2021, 10:06:46 AM10/29/21
to Django users

Annotation 2021-10-29 081743.png

waqar khan

unread,
Oct 30, 2021, 8:21:23 AM10/30/21
to django...@googlegroups.com
close round bracket

class Meta:


On Fri, Oct 29, 2021 at 7:36 PM Sabbir Hasan Munna <sabbirh...@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...@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.

patel dhruvish

unread,
Nov 2, 2021, 6:32:15 AM11/2/21
to django...@googlegroups.com
Close with Square bracket [ ' ' , ' ']

Peter of the Norse

unread,
Nov 21, 2021, 1:48:18 AM11/21/21
to django...@googlegroups.com
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 <sabbirh...@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...@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>

Rabil Abdullahi

unread,
Nov 21, 2021, 2:10:02 AM11/21/21
to rahm...@gmail.com, django...@googlegroups.com
You can simply use (form.Modelform) if you are using django model form,
Or (forms.Form) if you are using html forms

20211121_080549.jpg
Reply all
Reply to author
Forward
0 new messages