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

fix(controller): update Django admin fields #763

Merged
merged 1 commit into from
Apr 17, 2014
Merged

Conversation

mboersma
Copy link
Member

The declarative definition for presenting Build model objects
in the Django admin still referenced "sha," which is no longer
a field on the Build model. Same for the "version" field on
Config. Both of these caused a 500 error when browsing at
http://local.deisapp.com:8000/admin/

I also added "created" to Build, Config, and Release and
"domain" to Cluster in the admin list display.

The declarative definition for presenting Build model objects
in the Django admin still referenced "sha," which is no longer
a field on the Build model. Same for the "version" field on
Config. Both of these caused a 500 error when browsing at
http://local.deisapp.com:8000/admin/

I also added "created" to Build, Config, and Release and
"domain" to Cluster in the admin list display.
@carmstrong
Copy link
Contributor

LGTM.

@mboersma
Copy link
Member Author

pinging @gabrtv or @bacongobbler for review

@@ -33,7 +33,7 @@ class BuildAdmin(admin.ModelAdmin):
in the Django admin.
"""
date_hierarchy = 'created'
list_display = ('sha', 'owner', 'app')
list_display = ('created', 'owner', 'app')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a Build should also show the image that it created

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

owait, this is list_display. Never mind!

@bacongobbler
Copy link
Member

LGTM

mboersma added a commit that referenced this pull request Apr 17, 2014
fix(controller): update Django admin fields
@mboersma mboersma merged commit e130cff into master Apr 17, 2014
@mboersma mboersma deleted the fix-django-admin branch April 17, 2014 22:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants