<commit_before>from django.db import models
from django.contrib.auth.models import User
from phonenumber_field.modelfields import PhoneNumberField

from django.db.models.signals import post_save
from django.dispatch import receiver


# Create your models here.

class ImagerProfile(models.Model):
    """The library Patro and all of its attributes."""

    user = models.OneToOneField(
        User,
        related_name='profile',
        on_delete=models.CASCADE,
    )
    NATURE = 'Nature'
    URBAN = 'Urban'
    PORTRAIT = 'Portrait'

    PHOTOGRAPHY_CHOICES = (
        (NATURE, 'Nature'),
        (URBAN, 'Urban'),
        (PORTRAIT, 'Portrait'),
    )
    camera_type = models.CharField(max_length=128)
    address = models.CharField(max_length=255, blank=True, null=True)
    bio = models.TextField()
    website = models.CharField(max_length=255)
    hireable = models.BooleanField(default=True)
    travel_radius = models.DecimalField(max_digits=5, decimal_places=2)
    phone = PhoneNumberField()
    type_of_photography = models.CharField(choices=PHOTOGRAPHY_CHOICES)
<commit_msg>updated models with allowed blank fields<commit_after>from django.db import models
from django.contrib.auth.models import User
from phonenumber_field.modelfields import PhoneNumberField

from django.db.models.signals import post_save
from django.dispatch import receiver


# Create your models here.

class ImagerProfile(models.Model):
    """The library Patro and all of its attributes."""

    user = models.OneToOneField(
        User,
        related_name='profile',
        on_delete=models.CASCADE,
    )

    PHOTOGRAPHY_CHOICES = (
        ('NATURE', 'Nature'),
        ('URBAN', 'Urban'),
        ('PORTRAIT', 'Portrait'),
    )
    camera_type = models.CharField(max_length=128, blank=True,)
    address = models.CharField(max_length=255, blank=True, null=True)
    bio = models.TextField(blank=True,)
    website = models.CharField(max_length=255, blank=True,)
    hireable = models.BooleanField(default=True)
    travel_radius = models.DecimalField(max_digits=5, decimal_places=2)
    phone = PhoneNumberField()
    type_of_photography = models.CharField(choices=PHOTOGRAPHY_CHOICES)

{'fraction_non_alphanumeric': 0.10273972602739725, 'fraction_numerical': 0.01004566210045662, 'mean_word_length': 3.9682539682539684, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '505615', 'n_tokens_mistral': 720, 'n_tokens_neox': 675, 'n_words': 143}