diff --git a/jobposting/models.py b/jobposting/models.py index 7a40ece..af68fba 100644 --- a/jobposting/models.py +++ b/jobposting/models.py @@ -28,6 +28,30 @@ class JobOffer(models.Model): ('D', 'Inny status') ] + category_choices = [ + ('A', 'Budownictwo'), + ('B', 'IT'), + ('C', 'Elektryka i Elektronika'), + ('D', 'Produkcja'), + ('E', 'Mechanika i konstrukcje'), + ('F', 'Chemia i Biotechnologia'), + ('G', 'Biomedyczne'), + ('H', 'Automatyka i Robotyka'), + ('I', 'Logistyka i Transport'), + ('J', 'Sprzedaż'), + ('Z', 'Inne') + ] + + experience_levels = [ + ('A', 'Stażysta'), + ('B', 'Junior'), + ('C', 'Mid'), + ('D', 'Senior'), + ('E', 'Lead'), + ('F', 'Manager'), + ('G', 'Inne'), + ] + posting_option = models.CharField(max_length=1, choices=posting_options) company_name = models.CharField(max_length=255) name = models.CharField(max_length=255) @@ -40,8 +64,10 @@ class JobOffer(models.Model): vat_number = models.CharField(max_length=10) created_at = models.DateTimeField(default=timezone.now) status = models.CharField(max_length=1, choices=status_choices, default='W') - status_paid = models.CharField(max_length=1, choices=paid_status, default='N') - category = models.CharField(max_length=255, null=True, blank=True) + status_paid = models.CharField(max_length=1, choices=paid_status, + default='N') + category = models.CharField(max_length=1, choices=category_choices, + default='G') expiration_date = models.DateTimeField(null=True, blank=True) image = models.CharField(max_length=255, null=True, blank=True) experience_level = models.CharField(max_length=255, null=True, blank=True)