from .models import Show


def get_all_shows():
    return (Show.objects.select_related('cinema', "movie")
                       .prefetch_related("events")
                       .all())

@@ -123,16 +123,17 @@
         
+ 
 .prefetc
@@ -179,12 +179,75 @@
     
+ 
 .all()
+%0A                        .order_by(%22datetime%22, %22cinema%22, %22id%22)
 )%0A

Order shows by date