8
0
Fork 0
mirror of https://gitlab.federez.net/re2o/re2o synced 2024-05-18 16:43:11 +00:00
re2o/preferences/migrations/0047_mailcontact.py
Hugo Levy-Falk c4a104b3b6 I like my black.
Just ran black on the whoe repository. Fix #210.
2019-11-04 22:47:24 +01:00

48 lines
1.4 KiB
Python

# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2018-06-30 15:27
from __future__ import unicode_literals
from django.db import migrations, models
import re2o.mixins
class Migration(migrations.Migration):
dependencies = [("preferences", "0046_optionaluser_mail_extension")]
operations = [
migrations.CreateModel(
name="MailContact",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"address",
models.EmailField(
default="contact@example.org",
help_text="Contact email adress",
max_length=254,
),
),
(
"commentary",
models.CharField(
blank=True,
help_text="Description of the associated email adress.",
max_length=256,
null=True,
),
),
],
options={"permissions": (("view_mailcontact", "Can see contact email"),)},
bases=(re2o.mixins.AclMixin, models.Model),
)
]