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

# Create your models here.

class Post(models.Model):
    title = models.CharField(max_length=255)
    body = models.TextField(max_length=1023)
    #price = PriceField('Price', currency='USD', max_digits = 5, decimal_places=2)
    UNIT_CHOICES = [('Lb', 'LB'),
                    ('Gallon', 'GALLON'),
                    ('each', 'EACH'),
                    ]
    price = models.DecimalField(max_digits=5, decimal_places=2, default=0.00)
    unit = models.CharField(max_length=7, choices=UNIT_CHOICES, default='each')
    location = models.CharField(max_length=5)
    postDate = models.DateTimeField(auto_now_add=True)
    slug = models.SlugField(unique=True)
    user = models.OneToOneField(User, blank=True, null=True)<commit_msg>Changed the way user is stored to allow for a single user to own multiple posts (I mistakenly made it one-to-one before)<commit_after>from django.contrib.auth.models import User
from django.db import models

# Create your models here.

class Post(models.Model):
    title = models.CharField(max_length=255)
    body = models.TextField(max_length=1023)
    #price = PriceField('Price', currency='USD', max_digits = 5, decimal_places=2)
    UNIT_CHOICES = [('Lb', 'LB'),
                    ('Gallon', 'GALLON'),
                    ('each', 'EACH'),
                    ]
    price = models.DecimalField(max_digits=5, decimal_places=2, default=0.00)
    unit = models.CharField(max_length=7, choices=UNIT_CHOICES, default='each')
    location = models.CharField(max_length=5)
    postDate = models.DateTimeField(auto_now_add=True)
    slug = models.SlugField(unique=True)
    user = models.ForeignKey(User, editable=False)
{'fraction_non_alphanumeric': 0.12492836676217765, 'fraction_numerical': 0.01833810888252149, 'mean_word_length': 3.6068601583113455, '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': '4534623', 'n_tokens_mistral': 578, 'n_tokens_neox': 540, 'n_words': 117}