[Answer]-Save data in Models where field name comes from a variable

1👍

Use the kwargs magic:

field = request.POST['creationLanguage']
value = request.POST['title']
title = Translation.objects.create(**{field: value})

Leave a comment