Fields = '__all__'

Hii,
Here we have
fields = ‘all

How to specify which field we have to use and how it works?
fields = (‘name’,‘roll_number’)

What is the purpose of using the Meta class?

Meta class is a class container with some options (metadata) attached to the model. It defines such things as available permissions, associated database table name, whether the model is abstract or not, singular and plural versions of the name etc.

Thank u

But what about the “fields = ‘all’”
, means how can we specify the fields like “fields = (‘name’,‘roll_number’)”

Yes you can write

fields= [‘name’,‘roll_number’]