Skip to content

Commit bc27e99

Browse files
author
Gabriel Monroy
committed
refactor wip
1 parent a24f0dd commit bc27e99

46 files changed

Lines changed: 1827 additions & 1668 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.coveragerc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ omit =
33
*/venv/*
44
*/virtualenv/*
55
api/__init__.py
6-
celerytasks/__init__.py
7-
celerytasks/models.py
86
client/__init__.py
97
client/models.py
108
client/tests/__init__.py

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ db:
66
python manage.py migrate
77

88
test:
9-
python manage.py test api celerytasks client web
9+
python manage.py test api client cm provider web
1010

1111
coverage:
12-
coverage run manage.py test api celerytasks client web
12+
coverage run manage.py test api client cm provider web
1313
coverage html
1414

1515
flake8:

api/admin.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ class BuildAdmin(admin.ModelAdmin):
2626
in the Django admin.
2727
"""
2828
date_hierarchy = 'created'
29-
list_display = ('sha', 'owner', 'formation')
30-
list_filter = ('owner', 'formation')
29+
list_display = ('sha', 'owner', 'app')
30+
list_filter = ('owner', 'app')
3131
admin.site.register(Build, BuildAdmin)
3232

3333

@@ -36,18 +36,28 @@ class ConfigAdmin(admin.ModelAdmin):
3636
in the Django admin.
3737
"""
3838
date_hierarchy = 'created'
39-
list_display = ('version', 'owner', 'formation')
40-
list_filter = ('owner', 'formation')
39+
list_display = ('version', 'owner', 'app')
40+
list_filter = ('owner', 'app')
4141
admin.site.register(Config, ConfigAdmin)
4242

4343

44+
class ReleaseAdmin(admin.ModelAdmin):
45+
"""Set presentation options for :class:`~api.models.Release` models
46+
in the Django admin.
47+
"""
48+
date_hierarchy = 'created'
49+
list_display = ('owner', 'app', 'version')
50+
list_filter = ('owner', 'app')
51+
admin.site.register(Release, ReleaseAdmin)
52+
53+
4454
class ContainerAdmin(admin.ModelAdmin):
4555
"""Set presentation options for :class:`~api.models.Container` models
4656
in the Django admin.
4757
"""
4858
date_hierarchy = 'created'
49-
list_display = ('short_name', 'owner', 'formation', 'status')
50-
list_filter = ('owner', 'formation', 'status')
59+
list_display = ('short_name', 'owner', 'formation', 'app', 'status')
60+
list_filter = ('owner', 'formation', 'app', 'status')
5161
admin.site.register(Container, ContainerAdmin)
5262

5363

@@ -86,7 +96,7 @@ class LayerAdmin(admin.ModelAdmin):
8696
in the Django admin.
8797
"""
8898
date_hierarchy = 'created'
89-
list_display = ('id', 'owner', 'formation', 'flavor', 'level', 'run_list')
99+
list_display = ('id', 'owner', 'formation', 'flavor', 'proxy', 'runtime', 'config')
90100
list_filter = ('owner', 'formation', 'flavor')
91101
admin.site.register(Layer, LayerAdmin)
92102

@@ -109,13 +119,3 @@ class ProviderAdmin(admin.ModelAdmin):
109119
list_display = ('id', 'owner', 'type')
110120
list_filter = ('owner', 'type')
111121
admin.site.register(Provider, ProviderAdmin)
112-
113-
114-
class ReleaseAdmin(admin.ModelAdmin):
115-
"""Set presentation options for :class:`~api.models.Release` models
116-
in the Django admin.
117-
"""
118-
date_hierarchy = 'created'
119-
list_display = ('owner', 'formation', 'version')
120-
list_filter = ('owner', 'formation')
121-
admin.site.register(Release, ReleaseAdmin)

api/migrations/0001_initial.py

Lines changed: 63 additions & 42 deletions
Large diffs are not rendered by default.

api/migrations/0002_auto__add_unique_key_public.py

Lines changed: 0 additions & 181 deletions
This file was deleted.

0 commit comments

Comments
 (0)