2021-01-13 19:41:55 +01:00
|
|
|
from django import forms
|
|
|
|
from jobs.models import Job
|
|
|
|
|
|
|
|
|
|
|
|
class CreateJobForm(forms.ModelForm):
|
|
|
|
class Meta:
|
|
|
|
model = Job
|
|
|
|
fields = ['title', 'company', 'location', 'job_type', 'category', 'description']
|
|
|
|
widgets = {'job_type': forms.RadioSelect}
|
2021-01-14 20:31:47 +01:00
|
|
|
|
|
|
|
|
|
|
|
class ApplyJobForm(forms.ModelForm):
|
|
|
|
class Meta:
|
|
|
|
model = Job
|
|
|
|
fields = []
|
2021-01-15 19:58:42 +01:00
|
|
|
|
|
|
|
|
|
|
|
class UpdateJobForm(forms.ModelForm):
|
|
|
|
class Meta:
|
|
|
|
model = Job
|
|
|
|
fields = ['title', 'company', 'location', 'job_type', 'category', 'description']
|
|
|
|
widgets = {'job_type': forms.RadioSelect}
|