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


class ImagerProfile(models.Model):
    user = models.OneToOneField(User)

    profile_picture = models.ImageField(null=True)
    picture_privacy = models.BooleanField(default=False)

    phone_number = models.CharField(max_length=15)  # X(XXX) XXX-XXXX
    phone_privacy = models.BooleanField(default=False)

    birthday = models.DateField()
    birthday_privacy = models.BooleanField(default=False)

    name_privacy = models.BooleanField(default=False)

    email_privacy = models.BooleanField(default=False)

@@ -1,20 +1,60 @@
+from __future__ import unicode_literals%0A
 from django.db impor
@@ -106,17 +106,108 @@
 rt User%0A
-%0A
+from django.utils.encoding import python_2_unicode_compatible%0A%0A%0A@python_2_unicode_compatible
 %0Aclass I
@@ -270,16 +270,40 @@
 eld(User
+, related_name='profile'
 )%0A%0A    p
@@ -715,28 +715,288 @@
 BooleanField(default=False)%0A
+%0A    def __str__(self):%0A        return %22User: %7B%7D%22.format(self.user.username)%0A%0A    def is_active(self):%0A        return self.user.is_active()%0A%0A    @classmethod%0A    def active(self):%0A        qs = self.get_queryset()%0A        return qs.filter(user__is_active=True)%0A

Add string representation of class, is_active method, and first draft of active class method