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
class ContentletInlineFormSet(ContainerInlineFormSet):
def get_containers(self):
try:
- containers = list(self.instance.containers[0])
+ containers = self.instance.containers[0]
except ObjectDoesNotExist:
containers = []