IZAAC_BASE - poprawa modeli db
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Jakub K 2023-11-11 21:28:21 +01:00
parent 74800782ec
commit 51385cb1c7

View File

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