From 76ae1a508b394a2aae06df04cc17c09e0553b42d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 27 Feb 2012 16:25:45 +0100 Subject: [PATCH] Add admin interface for languages --- lang/admin.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lang/admin.py diff --git a/lang/admin.py b/lang/admin.py new file mode 100644 index 000000000..34c377310 --- /dev/null +++ b/lang/admin.py @@ -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) + +