~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to news/admin.py

  • Committer: franku
  • Date: 2016-12-13 18:28:51 UTC
  • mto: This revision was merged to the branch mainline in revision 443.
  • Revision ID: somal@arcor.de-20161213182851-bo5ebf8pdvw5beua
run the script

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
 
11
11
class PostAdmin(admin.ModelAdmin):
12
 
    list_display  = ('title', 'publish', 'status')
13
 
    list_filter   = ('publish', 'categories', 'status')
 
12
    list_display = ('title', 'publish', 'status')
 
13
    list_filter = ('publish', 'categories', 'status')
14
14
    search_fields = ('title', 'body')
15
15
    prepopulated_fields = {'slug': ('title',)}
16
16