Removed template container discovery in favor of (potentially) larger queries.
[philo.git] / philo / admin / forms / containers.py
index 246a954..987524f 100644 (file)
@@ -153,7 +153,7 @@ class ContainerInlineFormSet(BaseInlineFormSet):
 class ContentletInlineFormSet(ContainerInlineFormSet):
        def get_containers(self):
                try:
 class ContentletInlineFormSet(ContainerInlineFormSet):
        def get_containers(self):
                try:
-                       containers = list(self.instance.containers[0])
+                       containers = self.instance.containers[0]
                except ObjectDoesNotExist:
                        containers = []
                
                except ObjectDoesNotExist:
                        containers = []