dealer = Dealer.objects.get(id=dealer_id)
makes = DealerMake.objects.filter(dealer=dealer)
root = dealer.to_element()
for make in makes:
    root.append(make.to_element())
xml = ET.tostring(root)
print(xml)
Generate XML file from model data