'Return a list of AdminFields for the AdminForm in the response.'

def get_admin_form_fields(self, response):

    admin_form = response.context['adminform']
    fieldsets = list(admin_form)
    field_lines = []
    for fieldset in fieldsets:
        field_lines += list(fieldset)
    fields = []
    for field_line in field_lines:
        fields += list(field_line)
    return fields
