~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to privacy_policy/migrations/0001_initial.py

  • Committer: franku
  • Date: 2018-10-11 06:25:50 UTC
  • mfrom: (500.1.6 privacy_db)
  • Revision ID: somal@arcor.de-20181011062550-u0lcsrnrc0ajtpx2
Added Database driven app for privacy policies

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
# Generated by Django 1.11.12 on 2018-10-08 18:23
 
3
from __future__ import unicode_literals
 
4
 
 
5
from django.db import migrations, models
 
6
 
 
7
 
 
8
class Migration(migrations.Migration):
 
9
 
 
10
    initial = True
 
11
 
 
12
    dependencies = [
 
13
    ]
 
14
 
 
15
    operations = [
 
16
        migrations.CreateModel(
 
17
            name='PrivacyPolicy',
 
18
            fields=[
 
19
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
 
20
                ('language', models.CharField(default='English', help_text='Will be displayed as a level 1 header', max_length=30, unique=True)),
 
21
                ('policy_text', models.TextField(help_text='Text will be rendered using markdown syntax')),
 
22
                ('slug', models.SlugField(unique=True)),
 
23
            ],
 
24
            options={
 
25
                'ordering': ['language'],
 
26
            },
 
27
        ),
 
28
    ]