23 lines
578 B
Python
23 lines
578 B
Python
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}
|
|
|
|
|
|
class ApplyJobForm(forms.ModelForm):
|
|
class Meta:
|
|
model = Job
|
|
fields = []
|
|
|
|
|
|
class UpdateJobForm(forms.ModelForm):
|
|
class Meta:
|
|
model = Job
|
|
fields = ['title', 'company', 'location', 'job_type', 'category', 'description']
|
|
widgets = {'job_type': forms.RadioSelect}
|