Skip to content

Commit

Permalink
Merge pull request #123 from labhackercd/develop
Browse files Browse the repository at this point in the history
remove unused fields in admin
  • Loading branch information
erivanio authored Nov 21, 2018
2 parents cd6e5fa + d15f41f commit 533cbe0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wikilegis/core/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class BillThemeAdmin(admin.ModelAdmin):
search_fields = ('description', 'slug')
ordering = ('description',)
readonly_fields = ('slug',)
exclude = ['icon']


class CommentAdmin(admin.ModelAdmin):
Expand Down Expand Up @@ -93,7 +94,7 @@ def __init__(self, *args, **kwargs):


class BillAdmin(admin.ModelAdmin):
inlines = (BillVideoInline, BillReferenceInline, BillSegmentInline)
inlines = (BillVideoInline, BillSegmentInline)
list_display = (
'title', 'theme', 'status', 'upvote_count',
'downvote_count', 'comments_count')
Expand Down Expand Up @@ -171,7 +172,7 @@ class SegmentTypeAdmin(admin.ModelAdmin):
admin.site.register(models.Comment, CommentAdmin)
admin.site.register(models.Bill, BillAdmin)
admin.site.register(models.BillVideo, BillVideoAdmin)
admin.site.register(models.BillReference, BillReferenceAdmin)
# admin.site.register(models.BillReference, BillReferenceAdmin)
admin.site.register(models.BillSegment, BillSegmentAdmin)
admin.site.register(models.AdditiveAmendment, AdditiveAmendmentAdmin)
admin.site.register(models.ModifierAmendment, ModifierAmendmentAdmin)
Expand Down

0 comments on commit 533cbe0

Please sign in to comment.