Add admin interface for languages

This commit is contained in:
Michal Čihař 2012-02-27 16:25:45 +01:00
parent 57b99bb330
commit 76ae1a508b

10
lang/admin.py Normal file
View File

@ -0,0 +1,10 @@
from django.contrib import admin
from lang.models import Language
class LanguageAdmin(admin.ModelAdmin):
list_display = ['name', 'code']
search_fields = ['name', 'code']
admin.site.register(Language, LanguageAdmin)