def index(request):
    fields = MyModel._meta.fields
data = json.loads(serializers.serialize('json', MyModel.objects.all()))

def parse_data(data):
    result = []

def flatten_dict(d):
    """ 
            Because the only nested dict here is the fields, let's just
            remove the 'fields' suffix so that the fields can be loaded in 
            template by name
            """
Показать таблицу объектов django