title: Getting error as: SchoolDetailsView is missing or override SchoolDetailsView.get_queryset, what should I fix in below code?
body: <p>Model.py</p>
  <pre><code>class School(models.Model):
      name = models.CharField(max_length=256)
      principal = models.CharField(max_length=256)
      location = models.CharField(max_length=256)
  
      def __str__(self):
          return self.name
  
  
  class Student(models.Model):
      name = models.CharField(max_length=256)
      age = models.PositiveIntegerField()
      school = models.ForeignKey(School, related_name='students', on_delete=models.CASCADE)
  
      def __str__(self):
          return self.name
  </code></pre>
  <p>Views.py</p>
  <pre><code>class SchoolDetailsView(DetailView):
      context_object_name = 'school_detail'
      models = models.School
      template_name = 'basic_app/school_details.html'
  </code></pre>
  <p>html code code looks like below mentioned in comments</p>
  <p>template</p>
  <pre><code>Name: {{ school_detail.name }} 
  Principal: {{ school_detail.principal }} 
  Location: {{ school_detail.location }} 
  {% for student in school_detail.students.all() %} 
  {{ student.name }} who is {{ student.age }} years old. 
  {% endfor %}
  </code></pre>
  <p>urls.py</p>
  <pre><code>path('', views.SchoolListView.as_view(), name='list'),
  path('&lt;int:pk&gt;/', views.SchoolDetailsView.as_view(), name=&quot;detail&quot;),
  </code></pre>
  <p>Can anyone suggest what am I missing here in this code?</p>