Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
refactor wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Monroy committed Sep 10, 2013
1 parent a24f0dd commit bc27e99
Show file tree
Hide file tree
Showing 46 changed files with 1,827 additions and 1,668 deletions.
2 changes: 0 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ omit =
*/venv/*
*/virtualenv/*
api/__init__.py
celerytasks/__init__.py
celerytasks/models.py
client/__init__.py
client/models.py
client/tests/__init__.py
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ db:
python manage.py migrate

test:
python manage.py test api celerytasks client web
python manage.py test api client cm provider web

coverage:
coverage run manage.py test api celerytasks client web
coverage run manage.py test api client cm provider web
coverage html

flake8:
Expand Down
34 changes: 17 additions & 17 deletions api/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class BuildAdmin(admin.ModelAdmin):
in the Django admin.
"""
date_hierarchy = 'created'
list_display = ('sha', 'owner', 'formation')
list_filter = ('owner', 'formation')
list_display = ('sha', 'owner', 'app')
list_filter = ('owner', 'app')
admin.site.register(Build, BuildAdmin)


Expand All @@ -36,18 +36,28 @@ class ConfigAdmin(admin.ModelAdmin):
in the Django admin.
"""
date_hierarchy = 'created'
list_display = ('version', 'owner', 'formation')
list_filter = ('owner', 'formation')
list_display = ('version', 'owner', 'app')
list_filter = ('owner', 'app')
admin.site.register(Config, ConfigAdmin)


class ReleaseAdmin(admin.ModelAdmin):
"""Set presentation options for :class:`~api.models.Release` models
in the Django admin.
"""
date_hierarchy = 'created'
list_display = ('owner', 'app', 'version')
list_filter = ('owner', 'app')
admin.site.register(Release, ReleaseAdmin)


class ContainerAdmin(admin.ModelAdmin):
"""Set presentation options for :class:`~api.models.Container` models
in the Django admin.
"""
date_hierarchy = 'created'
list_display = ('short_name', 'owner', 'formation', 'status')
list_filter = ('owner', 'formation', 'status')
list_display = ('short_name', 'owner', 'formation', 'app', 'status')
list_filter = ('owner', 'formation', 'app', 'status')
admin.site.register(Container, ContainerAdmin)


Expand Down Expand Up @@ -86,7 +96,7 @@ class LayerAdmin(admin.ModelAdmin):
in the Django admin.
"""
date_hierarchy = 'created'
list_display = ('id', 'owner', 'formation', 'flavor', 'level', 'run_list')
list_display = ('id', 'owner', 'formation', 'flavor', 'proxy', 'runtime', 'config')
list_filter = ('owner', 'formation', 'flavor')
admin.site.register(Layer, LayerAdmin)

Expand All @@ -109,13 +119,3 @@ class ProviderAdmin(admin.ModelAdmin):
list_display = ('id', 'owner', 'type')
list_filter = ('owner', 'type')
admin.site.register(Provider, ProviderAdmin)


class ReleaseAdmin(admin.ModelAdmin):
"""Set presentation options for :class:`~api.models.Release` models
in the Django admin.
"""
date_hierarchy = 'created'
list_display = ('owner', 'formation', 'version')
list_filter = ('owner', 'formation')
admin.site.register(Release, ReleaseAdmin)
105 changes: 63 additions & 42 deletions api/migrations/0001_initial.py

Large diffs are not rendered by default.

181 changes: 0 additions & 181 deletions api/migrations/0002_auto__add_unique_key_public.py

This file was deleted.

Loading

0 comments on commit bc27e99

Please sign in to comment.