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

# Create your models here.

class Profile(models.Model):
	user = models.OneToOneField(User, on_delete = models.CASCADE)
	image = models.ImageField(default = 'default.jpg', upload_to = 'profile_pics')
	first_name = models.CharField(default ='', max_length = 30)
	last_name = models.CharField(default ='', max_length = 30)
	date_of_birth = models.DateField(default = timezone.now)
	address = models.CharField(default = '', max_length = 255)
	city = models.CharField(default = '', max_length = 100)
	country = models.CharField(default = '', max_length = 100)

	def __str__(self):
		return f'Profile for {self.user.username}'
96e4d99dc6e08543cb61798f0e206518240d1e01
<mask token>


class Profile(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Profile(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def __str__(self):
        return f'Profile for {self.user.username}'

<mask token>


class Profile(models.Model):
    user = models.OneToOneField(User, on_delete=models.CASCADE)
    image = models.ImageField(default='default.jpg', upload_to='profile_pics')
    first_name = models.CharField(default='', max_length=30)
    last_name = models.CharField(default='', max_length=30)
    date_of_birth = models.DateField(default=timezone.now)
    address = models.CharField(default='', max_length=255)
    city = models.CharField(default='', max_length=100)
    country = models.CharField(default='', max_length=100)

    def __str__(self):
        return f'Profile for {self.user.username}'

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


class Profile(models.Model):
    user = models.OneToOneField(User, on_delete=models.CASCADE)
    image = models.ImageField(default='default.jpg', upload_to='profile_pics')
    first_name = models.CharField(default='', max_length=30)
    last_name = models.CharField(default='', max_length=30)
    date_of_birth = models.DateField(default=timezone.now)
    address = models.CharField(default='', max_length=255)
    city = models.CharField(default='', max_length=100)
    country = models.CharField(default='', max_length=100)

    def __str__(self):
        return f'Profile for {self.user.username}'

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

# Create your models here.

class Profile(models.Model):
	user = models.OneToOneField(User, on_delete = models.CASCADE)
	image = models.ImageField(default = 'default.jpg', upload_to = 'profile_pics')
	first_name = models.CharField(default ='', max_length = 30)
	last_name = models.CharField(default ='', max_length = 30)
	date_of_birth = models.DateField(default = timezone.now)
	address = models.CharField(default = '', max_length = 255)
	city = models.CharField(default = '', max_length = 100)
	country = models.CharField(default = '', max_length = 100)

	def __str__(self):
		return f'Profile for {self.user.username}'