Code is perfectly working but 'pylint' extension shows an error .

You can safely ignore it.

I’m sure there’s a way to configure pylint to not generate that message - or even to recognize some of the Django metaclass “magic” that exists, but I don’t know it right off-hand.

I believe there have also been other topics in the forum discussing this - you might try searching for “pylint” to see what you can find.
See - Class 'Question' has no 'objects' member pylint(no-member) as a start.

1 Like