from django.forms.models import model_to_dict Group.objects.get(id=1).__dict__ model_to_dict(Group.objects.get(id=1))
User.objects.get(id=2).to_dict()