167 down voteYou can also rely on django code already written ;).
from django.forms.models import model_to_dict model_to_dict(instance, fields=[], exclude=[])
167 down voteYou can also rely on django code already written ;).
from django.forms.models import model_to_dict model_to_dict(instance, fields=[], exclude=[])