-
-
-#class RelationshipInline(generic.GenericTabularInline):
-# ct_field = 'entity_content_type'
-# ct_fk_field = 'entity_object_id'
-# model = Relationship
-# extra = 1
-# template = 'admin/philo/edit_inline/tabular_collapse.html'
-# allow_add = True
-# classes = COLLAPSE_CLASSES
+ form = AttributeForm
+ formset = AttributeInlineFormSet
+ fields = ['key', 'value_content_type']
+ if 'grappelli' in settings.INSTALLED_APPS:
+ template = 'admin/philo/edit_inline/grappelli_tabular_attribute.html'
+ else:
+ template = 'admin/philo/edit_inline/tabular_attribute.html'