>>> from django.contrib.auth.models import User
>>> from django.forms.models import model_to_dict
>>> u = User.objects.get(id=1)
>>> u_dict = model_to_dict(u)
>>> type(u) <class 'django.contrib.auth.models.User'>
>>> type(u_dict) <type 'dict'>
>>> from django.contrib.auth.models import User
>>> from django.forms.models import model_to_dict
>>> u = User.objects.get(id=1)
>>> u_dict = model_to_dict(u)
>>> type(u) <class 'django.contrib.auth.models.User'>
>>> type(u_dict) <type 'dict'>