~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to sphinxdoc/admin.py

  • Committer: franku
  • Author(s): GunChleoc
  • Date: 2016-12-13 18:30:38 UTC
  • mfrom: (438.1.6 pyformat_util)
  • Revision ID: somal@arcor.de-20161213183038-5cgmvfh2fkgmoc1s
adding a script to run pyformat over the code base

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)