X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/d19e216035b14d8f60b24dda0c0670e6997f16ce..17e82da27c3b2de8a6ab4b2e745122c1b3e541c6:/philo/admin/forms/containers.py diff --git a/philo/admin/forms/containers.py b/philo/admin/forms/containers.py index 420ba17..987524f 100644 --- a/philo/admin/forms/containers.py +++ b/philo/admin/forms/containers.py @@ -5,6 +5,7 @@ from django.db.models import Q from django.forms.models import ModelForm, BaseInlineFormSet, BaseModelFormSet from django.forms.formsets import TOTAL_FORM_COUNT from django.utils.datastructures import SortedDict + from philo.admin.widgets import ModelLookupWidget from philo.models import Contentlet, ContentReference @@ -152,7 +153,7 @@ class ContainerInlineFormSet(BaseInlineFormSet): class ContentletInlineFormSet(ContainerInlineFormSet): def get_containers(self): try: - containers = list(self.instance.containers[0]) + containers = self.instance.containers[0] except ObjectDoesNotExist: containers = []