from django.http import HttpResponse
from django.utils import simplejson as json
from django.utils.html import escape
from django.http import HttpResponse
from django.utils import simplejson as json
from django.utils.html import escape
from philo.models import Tag, Attribute
from philo.models.fields.entities import ForeignKeyAttribute, ManyToManyAttribute
from philo.admin.forms.attributes import AttributeForm, AttributeInlineFormSet
from philo.admin.widgets import TagFilteredSelectMultiple
from philo.forms.entities import EntityForm, proxy_fields_for_entity_model
from philo.models import Tag, Attribute
from philo.models.fields.entities import ForeignKeyAttribute, ManyToManyAttribute
from philo.admin.forms.attributes import AttributeForm, AttributeInlineFormSet
from philo.admin.widgets import TagFilteredSelectMultiple
from philo.forms.entities import EntityForm, proxy_fields_for_entity_model
COLLAPSE_CLASSES = ('collapse', 'collapse-closed', 'closed',)
COLLAPSE_CLASSES = ('collapse', 'collapse-closed', 'closed',)