From 51385cb1c70c247d55c8291a3835b8efd06991c9 Mon Sep 17 00:00:00 2001 From: Jakub K Date: Sat, 11 Nov 2023 21:28:21 +0100 Subject: [PATCH] IZAAC_BASE - poprawa modeli db --- jobposting/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jobposting/models.py b/jobposting/models.py index ba6e529..1c6b817 100644 --- a/jobposting/models.py +++ b/jobposting/models.py @@ -1,6 +1,6 @@ from django.db import models -from django.contrib.auth.models import User +from core.models import MyUser from django.utils import timezone class JobListing(models.Model): @@ -23,7 +23,7 @@ class JobListing(models.Model): max_salary = models.DecimalField(max_digits=10, decimal_places=2) location = models.CharField(max_length=255) coordinates = models.CharField(max_length=255) # rozwaz GEODJANGO - created_by = models.ForeignKey(User, on_delete=models.CASCADE, related_name='job_listings') + created_by = models.ForeignKey(MyUser, on_delete=models.CASCADE, related_name='job_listings') created_at = models.DateTimeField(default=timezone.now) status = models.CharField(max_length=1, choices=status_choices, default='A') status_paid = models.CharField(max_length=1, choices=paid_status, default='N')