Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions jobs/migrations/0020_auto_20191101_1601.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 2.0.13 on 2019-11-01 16:01

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('jobs', '0019_job_submitted_by'),
]

operations = [
migrations.AlterField(
model_name='job',
name='url',
field=models.URLField(null=True, verbose_name='URL'),
),
]
2 changes: 1 addition & 1 deletion jobs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class Job(ContentManageable):
url = models.URLField(
verbose_name='URL',
null=True,
blank=True)
blank=False)

submitted_by = models.ForeignKey(
User,
Expand Down
3 changes: 2 additions & 1 deletion jobs/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ def test_job_create(self):
'country': 'USA',
'description': 'Lorem ipsum dolor sit amet',
'requirements': 'Some requirements',
'email': 'hr@company.com'
'email': 'hr@company.com',
'url': 'https://jobs.company.com',
}

# Check that anonymous posting is not allowed. See #852.
Expand Down