~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to privacy_policy/admin.py

  • Committer: Holger Rapp
  • Date: 2009-02-21 18:24:02 UTC
  • Revision ID: sirver@kallisto.local-20090221182402-k3tuf5c4gjwslbjf
Main Page contains now the same informations as before

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- coding: utf-8 -*-
2
 
from __future__ import unicode_literals
3
 
 
4
 
from django.contrib import admin
5
 
from privacy_policy.models import PrivacyPolicy
6
 
 
7
 
 
8
 
class PrivacyPolicyAdmin(admin.ModelAdmin):
9
 
    prepopulated_fields = {"slug": ("language",)}
10
 
    list_display = ('language',)
11
 
 
12
 
 
13
 
admin.site.register(PrivacyPolicy, PrivacyPolicyAdmin)