title: How can I show all this images in a carousel
body: <p>I know beginners can ask stupid questions but that is the way trough all it.
  Is it possible that i can list all this images in a carousel? or image gallery. How can i list this images easiest?</p>
  <p>What would you suggest?</p>
  <p>I don't want to use foreignkey because I cannot (I couldn't yet understand the save process in the views) save a separate model in a view.
  Thanks a lot</p>
  <pre><code>class MyFamily(models.Model):
      author = models.ForeignKey(Profile, on_delete=models.CASCADE)
      date = models.DateField(auto_now_add=True)
      update = models.DateField(auto_now=True)
      title = models.CharField(max_length=100)
      explanatipon = models.TextField(blank=True)
      photo1 = models.ImageField(upload_to='posts/photos/')
      photo2 = models.ImageField(upload_to='posts/photos/')
      photo3 = models.ImageField(upload_to='posts/photos/')
      photo4 = models.ImageField(upload_to='posts/photos/')
      photo5 = models.ImageField(upload_to='posts/photos/')
      active = models.BooleanField(default=True)
  
      def __str__(self):
          return str(self.title)[:30]
  </code></pre>
  <p>i tried to make it like @willem-van-onsem mentioned it but without success. I NEED HELP PLEASE</p>
  <p>What did I do :</p>
  <p>MODELS PROFILE:</p>
  <pre><code>class Profile(models.Model):
      user = models.OneToOneField(User, on_delete=models.CASCADE)
      bio = models.TextField()
      updated = models.DateTimeField(auto_now=True)
      created = models.DateTimeField(auto_now_add=True)
  
      def __str__(self):
          return str(self.user.username)
  </code></pre>
  <p>MODELS MYFAMILY:</p>
  <pre><code>class MyFamily(models.Model):
      author = models.ForeignKey(Profile, on_delete=models.CASCADE)
      date = models.DateField(auto_now_add=True)
      update = models.DateField(auto_now=True)
      title = models.CharField(max_length=100)
      explanatipon = models.TextField(blank=True)
      photo1 = models.ImageField(upload_to='posts/photos/')
      photo2 = models.ImageField(upload_to='posts/photos/')
      photo3 = models.ImageField(upload_to='posts/photos/')
      photo4 = models.ImageField(upload_to='posts/photos/')
      photo5 = models.ImageField(upload_to='posts/photos/')
      active = models.BooleanField(default=True)
  
      @property
      def photos(self):
          photos = [self.photo1, self.photo2, self.photo3, self.photo4, self.photo5]
          return [photo for photo in photos if photo is not None]
  
      def __str__(self):
          return str(self.title)[:30]
  </code></pre>
  <p>VİEWS :</p>
  <pre><code>def photo(request):
      myfamily = MyFamily.objects.filter(active=True)
  
      context = {
          'myfamily':myfamily
      }
      return render(request, 'posts/create-form.html')
  </code></pre>