Commit 76ae1a50 authored by Michal Čihař's avatar Michal Čihař

Add admin interface for languages

parent 57b99bb3
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)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment