~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to privacy_policy/models.py

  • Committer: franku
  • Date: 2018-10-02 16:55:42 UTC
  • mto: This revision was merged to the branch mainline in revision 503.
  • Revision ID: somal@arcor.de-20181002165542-k5a3bwy01y5td8v8
added an privacy policy app

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.db import models
 
5
 
 
6
 
 
7
class PrivacyPolicy(models.Model):
 
8
 
 
9
    language = models.CharField(default='English', max_length=30,
 
10
                                help_text='Will be displayed as a level 1 header',
 
11
                                unique=True)
 
12
    policy_text = models.TextField(
 
13
        help_text='Text will be rendered using markdown syntax')
 
14
 
 
15
    class Meta:
 
16
        ordering = ['language']