<form>
{% csrf_token %}
{{ model_form_user }}
{{ model_form_profile }}
<button type="submit">
Расширять auth.User не предлагатьтогда мучайся дальше такими вопросами
элигатнногоhttps://ru.wiktionary.org/wiki/%D1%8D%D0%BB%D0%B5%...
if settings.MEDIA_ROOT:
user_send_last_msgs = Message.objects.\
filter(user_sender=token.user_id).\
order_by('-send_date', 'user_receiver').\
distinct('user_receiver')
# distinct('user_receiver') postgres only
user_receive_last_msgs = Message.objects.\
filter(user_receiver=token.user_id).\
order_by('-send_date', 'user_sender').\
distinct('user_sender')
for message in last_msgs:
print message.user_sender
print message.user_receiver
print message.send_date
print message.message
print message.status