Changes Job.expiry to Job.expiry_date. This also changes the field type from DateTimeField to DateTimeField. This will make it easier to run a scheduled daily task that marks jobs as expired or disabled. This also makes querying easier as we probably won't care about the specific hour and time.
Moves get_default_expiry to jobsboard.common.utils from jobsboard.jobs.models.
Changes the default for Job.employment_type to EMPLOYMENT_TYPE_FULL_TIME from EMPLOYMENT_TYPE_PART_TIME as most job posts look for full-time employees instead of part-time employees.
This PR has multiple changes:
Job.expiry
toJob.expiry_date
. This also changes the field type fromDateTimeField
toDateTimeField
. This will make it easier to run a scheduled daily task that marks jobs as expired or disabled. This also makes querying easier as we probably won't care about the specific hour and time.get_default_expiry
tojobsboard.common.utils
fromjobsboard.jobs.models
.Job.employment_type
toEMPLOYMENT_TYPE_FULL_TIME
fromEMPLOYMENT_TYPE_PART_TIME
as most job posts look for full-time employees instead of part-time employees.