dunder str func
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Jakub K 2024-01-04 14:38:13 +01:00
parent fe61a4e344
commit 4f21c843b0

View File

@ -67,6 +67,9 @@ class JobListing(models.Model):
class Skill(models.Model):
skill_name = models.CharField(max_length=255)
def __str__(self):
return f"{self.skill_name}"
class SkillLevels(models.Model):
@ -83,3 +86,7 @@ class SkillLevels(models.Model):
class CompanyLogo(models.Model):
company_logo = models.ImageField(upload_to=rename_file)
company_name = models.CharField(max_length=255)
def __str__(self):
return f"{self.company_name}"