
from django.db import models
from django.contrib.auth.models import User
import six

@six.python_2_unicode_compatible
class ImagerProfile(models.Model):
    user = models.OneToOneField(User)
    fav_camera = models.CharField(max_length=30)
    address = models.CharField(max_length=100)
    web_url = models.URLField()
    type_photography = models.CharField(max_length=30)


import six

from django.db import models
from django.contrib.auth.models import User


@six.python_2_unicode_compatible
class ImagerProfile(models.Model):
    user = models.OneToOneField(User)
    fav_camera = models.CharField(max_length=30)
    address = models.CharField(max_length=100)
    web_url = models.URLField()
    type_photography = models.CharField(max_length=30)

    def __str__(self):
        return "{}'s profile".format(self.user.username)


Add __str__ method