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')