~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to sphinxdoc/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:
1
1
# encoding: utf-8
2
 
'''
3
 
Admin interface for the sphinxdoc app.
4
 
'''
 
2
"""Admin interface for the sphinxdoc app."""
5
3
 
6
4
from django.contrib import admin
7
5
 
11
9
class AppAdmin(admin.ModelAdmin):
12
10
    list_display = ('name', 'path',)
13
11
    prepopulated_fields = {'slug': ('name',)}
14
 
    
 
12
 
15
13
 
16
14
admin.site.register(App, AppAdmin)