Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
fix(app): add verbose_name to App model due to a DRF 3.4.1 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
helgi committed Jul 29, 2016
1 parent 745d6d0 commit f3bbc11
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions rootfs/api/models/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ class App(UuidAuditedModel):
structure = JSONField(default={}, blank=True, validators=[validate_app_structure])

class Meta:
verbose_name = 'Application'
permissions = (('use_app', 'Can use app'),)
ordering = ['id']

Expand Down
2 changes: 1 addition & 1 deletion rootfs/api/tests/deployments/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test_app_override_id(self, mock_requests):
self.assertEqual(response.status_code, 201, response.data)
body = {'id': response.data['id']}
response = self.client.post('/v2/apps', body)
self.assertContains(response, 'App with this id already exists.', status_code=400)
self.assertContains(response, 'Application with this id already exists.', status_code=400)
return response

@mock.patch('requests.get')
Expand Down
2 changes: 1 addition & 1 deletion rootfs/api/tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def test_app_override_id(self, mock_requests):
self.assertEqual(response.status_code, 201, response.data)
body = {'id': response.data['id']}
response = self.client.post('/v2/apps', body)
self.assertContains(response, 'App with this id already exists.', status_code=400)
self.assertContains(response, 'Application with this id already exists.', status_code=400)
return response

@mock.patch('requests.get')
Expand Down

0 comments on commit f3bbc11

Please sign in to comment.