title: How create slider by model in django?
body: <p>In my Django project I have Slider model. Can someone help me create a slider by this model? I am a little bit confused and need some ideas. I would be grateful for any help.</p>
  
  <p><strong>models.py:</strong></p>
  
  <pre><code>class Slider(models.Model):
      head = models.CharField(
          max_length=250,
          help_text='Header',
          blank=False
      )
  
      body = models.TextField(
          help_text='Description',
          blank=False
      )
  
      idx = models.IntegerField(
          help_text='Field to sort',
          default=0,
          blank=True
      )
  
      class Meta:
          ordering = ['idx', 'pk']
  </code></pre>