zmiana w modelach
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Jakub K 2023-12-30 00:53:23 +01:00
parent 1950ea1fbb
commit 8f1b92cee0
2 changed files with 3 additions and 2 deletions

View File

@ -32,7 +32,8 @@ class MyUser(AbstractBaseUser, PermissionsMixin):
last_name = models.CharField(_('last name'), max_length=150, blank=True)
is_staff = models.BooleanField(_('staff status'), default=False)
is_active = models.BooleanField(_('active'), default=True)
company_name = models.CharField(_('company name'), max_length=100)
objects = MyUserManager()
USERNAME_FIELD = 'username'
REQUIRED_FIELDS = ['email']

View File

@ -44,7 +44,7 @@ class JobListing(models.Model):
employmentType = models.CharField(max_length=255, null=True, blank=True)
workFromHome = models.CharField(max_length=255)
updated_at = models.DateTimeField(auto_now=True)
job_skills = models.ManyToManyField('SkillLevels', blank=True)
skillLevels = models.ManyToManyField('SkillLevels', blank=True)
created_by = models.ForeignKey(MyUser, on_delete=models.CASCADE)
first_name = models.CharField(max_length=255)
last_name = models.CharField(max_length=255)