from django.db import models
# from django.conf import settings

# Create your models here.


class ImagerProfile(models.Model):

    profile_picture = models.ImageField()
    # user = models.OneToOneField(settings.AUTH_USER_MODEL)
    phone_number = models.CharField(max_length=15)  # X(XXX) XXX-XXXX
    birthday = models.DateField()
    picture_privacy = models.BooleanField()
    phone_privacy = models.BooleanField()
    birthday_privacy = models.BooleanField()
    name_privacy = models.BooleanField()
    email_privacy = models.BooleanField()

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


# class ImagerProfile(models.Manager):
#     pass


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

    profile_picture = models.ImageField(null=True)
    phone_number = models.CharField(max_length=15)  # X(XXX) XXX-XXXX
    birthday = models.DateField()

    picture_privacy = models.BooleanField(default=False)
    phone_privacy = models.BooleanField(default=False)
    birthday_privacy = models.BooleanField(default=False)
    name_privacy = models.BooleanField(default=False)
    email_privacy = models.BooleanField(default=False)

Change ImagerProfile model privacy booleans to default of False, profile_picture to nullable
Change ImagerProfile model privacy booleans to default of False, profile_picture to nullable

  from django.db import models
- # from django.conf import settings
+ from django.contrib.auth.models import User
  
- # Create your models here.
+ 
+ # class ImagerProfile(models.Manager):
+ #     pass
  
  
  class ImagerProfile(models.Model):
+     user = models.OneToOneField(User)
+     # objects = ImagerProfile()
  
-     profile_picture = models.ImageField()
+     profile_picture = models.ImageField(null=True)
-     # user = models.OneToOneField(settings.AUTH_USER_MODEL)
      phone_number = models.CharField(max_length=15)  # X(XXX) XXX-XXXX
      birthday = models.DateField()
-     picture_privacy = models.BooleanField()
-     phone_privacy = models.BooleanField()
-     birthday_privacy = models.BooleanField()
-     name_privacy = models.BooleanField()
-     email_privacy = models.BooleanField()
  
+     picture_privacy = models.BooleanField(default=False)
+     phone_privacy = models.BooleanField(default=False)
+     birthday_privacy = models.BooleanField(default=False)
+     name_privacy = models.BooleanField(default=False)
+     email_privacy = models.BooleanField(default=False)
+ 
Change ImagerProfile model privacy booleans to default of False, profile_picture to nullable
## Code Before:
from django.db import models
# from django.conf import settings

# Create your models here.


class ImagerProfile(models.Model):

    profile_picture = models.ImageField()
    # user = models.OneToOneField(settings.AUTH_USER_MODEL)
    phone_number = models.CharField(max_length=15)  # X(XXX) XXX-XXXX
    birthday = models.DateField()
    picture_privacy = models.BooleanField()
    phone_privacy = models.BooleanField()
    birthday_privacy = models.BooleanField()
    name_privacy = models.BooleanField()
    email_privacy = models.BooleanField()

## Instruction:
Change ImagerProfile model privacy booleans to default of False, profile_picture to nullable
## Code After:
from django.db import models
from django.contrib.auth.models import User


# class ImagerProfile(models.Manager):
#     pass


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

    profile_picture = models.ImageField(null=True)
    phone_number = models.CharField(max_length=15)  # X(XXX) XXX-XXXX
    birthday = models.DateField()

    picture_privacy = models.BooleanField(default=False)
    phone_privacy = models.BooleanField(default=False)
    birthday_privacy = models.BooleanField(default=False)
    name_privacy = models.BooleanField(default=False)
    email_privacy = models.BooleanField(default=False)
