How to use the pretalx.common function in pretalx

To help you get started, we’ve selected a few pretalx examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pretalx / pretalx / src / pretalx / event / migrations / 0001_initial.py View on Github external
(
                    "subtitle",
                    i18nfield.fields.I18nCharField(
                        blank=True, max_length=200, null=True
                    ),
                ),
                ("is_public", models.BooleanField(default=False)),
                ("date_from", models.DateField(blank=True, null=True)),
                ("date_to", models.DateField(blank=True, null=True)),
                ("timezone", models.CharField(default="UTC", max_length=30)),
                ("email", models.EmailField(blank=True, max_length=254, null=True)),
                ("color", models.CharField(blank=True, max_length=7, null=True)),
                ("locale_array", models.TextField(default="en")),
                ("locale", models.CharField(default="en", max_length=32)),
            ],
            bases=(pretalx.common.mixins.LogMixin, models.Model),
        ),
        migrations.CreateModel(
            name="Event_SettingsStore",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True, primary_key=True, serialize=False
                    ),
                ),
                ("key", models.CharField(max_length=255)),
                ("value", models.TextField()),
                (
                    "object",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
github pretalx / pretalx / src / pretalx / mail / migrations / 0001_initial.py View on Github external
("to", models.CharField(max_length=1000)),
                ("reply_to", models.CharField(max_length=1000)),
                ("cc", models.CharField(blank=True, max_length=1000, null=True)),
                ("bcc", models.CharField(blank=True, max_length=1000, null=True)),
                ("subject", models.CharField(max_length=200)),
                ("text", models.TextField()),
                (
                    "event",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.PROTECT,
                        related_name="queued_mails",
                        to="event.Event",
                    ),
                ),
            ],
            bases=(pretalx.common.mixins.LogMixin, models.Model),
        ),
github pretalx / pretalx / src / pretalx / submission / migrations / 0003_auto_20170830_1813.py View on Github external
),
                ),
                ("rating", models.IntegerField(blank=True, null=True)),
                ("review", models.TextField()),
                (
                    "speaker",
                    models.ForeignKey(
                        blank=True,
                        null=True,
                        on_delete=django.db.models.deletion.PROTECT,
                        related_name="feedback",
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
            ],
            bases=(pretalx.common.mixins.LogMixin, models.Model),
        ),
        migrations.AddField(
            model_name="submission",
            name="accept_feedback",
            field=models.BooleanField(default=True),
        ),
        migrations.AlterField(
            model_name="submission",
            name="do_not_record",
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name="feedback",
            name="talk",
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.PROTECT,
github pretalx / pretalx / src / pretalx / event / migrations / 0013_auto_20180407_0817.py View on Github external
),
                ("name", i18nfield.fields.I18nCharField(max_length=190)),
                (
                    "slug",
                    models.SlugField(
                        unique=True,
                        validators=[
                            django.core.validators.RegexValidator(
                                message="The slug may only contain letters, numbers, dots and dashes.",
                                regex="^[a-zA-Z0-9.-]+$",
                            )
                        ],
                    ),
                ),
            ],
            bases=(pretalx.common.mixins.models.LogMixin, models.Model),
        ),
        migrations.CreateModel(
            name="Team",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True, primary_key=True, serialize=False
                    ),
                ),
                ("name", models.CharField(max_length=190)),
                ("all_events", models.BooleanField(default=False)),
                ("can_create_events", models.BooleanField(default=False)),
                ("can_change_teams", models.BooleanField(default=False)),
                ("can_change_organiser_settings", models.BooleanField(default=False)),
                ("can_change_event_settings", models.BooleanField(default=False)),
github pretalx / pretalx / src / pretalx / person / migrations / 0014_speakerinformation.py View on Github external
),
                ),
                ("include_submitters", models.BooleanField(default=False)),
                ("exclude_unconfirmed", models.BooleanField(default=False)),
                ("title", i18nfield.fields.I18nCharField(max_length=200)),
                ("text", i18nfield.fields.I18nTextField()),
                (
                    "event",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="information",
                        to="event.Event",
                    ),
                ),
            ],
            bases=(pretalx.common.mixins.models.LogMixin, models.Model),
        ),
github pretalx / pretalx / src / pretalx / person / migrations / 0001_initial.py View on Github external
related_name="permissions",
                        to="event.Event",
                    ),
                ),
                (
                    "user",
                    models.ForeignKey(
                        blank=True,
                        null=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="permissions",
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
            ],
            bases=(pretalx.common.mixins.LogMixin, models.Model),
        ),
        migrations.CreateModel(
            name="SpeakerProfile",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True, primary_key=True, serialize=False
                    ),
                ),
                ("biography", models.TextField(blank=True, null=True)),
                (
                    "event",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="+",
github pretalx / pretalx / src / pretalx / person / migrations / 0001_initial.py View on Github external
related_name="+",
                        to="event.Event",
                    ),
                ),
                (
                    "user",
                    models.ForeignKey(
                        blank=True,
                        null=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="profiles",
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
            ],
            bases=(pretalx.common.mixins.LogMixin, models.Model),
        ),
github pretalx / pretalx / src / pretalx / mail / migrations / 0001_initial.py View on Github external
),
                ),
                ("subject", i18nfield.fields.I18nCharField(max_length=200)),
                ("text", i18nfield.fields.I18nTextField()),
                ("reply_to", models.EmailField(blank=True, max_length=200, null=True)),
                ("bcc", models.CharField(blank=True, max_length=1000, null=True)),
                (
                    "event",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.PROTECT,
                        related_name="mail_templates",
                        to="event.Event",
                    ),
                ),
            ],
            bases=(pretalx.common.mixins.LogMixin, models.Model),
        ),
        migrations.CreateModel(
            name="QueuedMail",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True, primary_key=True, serialize=False
                    ),
                ),
                ("to", models.CharField(max_length=1000)),
                ("reply_to", models.CharField(max_length=1000)),
                ("cc", models.CharField(blank=True, max_length=1000, null=True)),
                ("bcc", models.CharField(blank=True, max_length=1000, null=True)),
                ("subject", models.CharField(max_length=200)),
                ("text", models.TextField()),
github pretalx / pretalx / src / pretalx / submission / migrations / 0001_initial.py View on Github external
(
                    "id",
                    models.AutoField(
                        auto_created=True, primary_key=True, serialize=False
                    ),
                ),
                (
                    "headline",
                    i18nfield.fields.I18nCharField(
                        blank=True, max_length=300, null=True
                    ),
                ),
                ("text", i18nfield.fields.I18nTextField(blank=True, null=True)),
                ("deadline", models.DateTimeField(blank=True, null=True)),
            ],
            bases=(pretalx.common.mixins.LogMixin, models.Model),
        ),
        migrations.CreateModel(
            name="Question",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True, primary_key=True, serialize=False
                    ),
                ),
                ("variant", models.CharField(default="string", max_length=14)),
                ("question", i18nfield.fields.I18nCharField(max_length=200)),
                ("default_answer", models.TextField(blank=True, null=True)),
                ("required", models.BooleanField(default=False)),
                ("position", models.IntegerField(default=0)),
                (
github pretalx / pretalx / src / pretalx / submission / migrations / 0041_auto_20191105_0042.py View on Github external
),
                (
                    "track",
                    models.ForeignKey(
                        blank=True,
                        null=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="submitter_access_codes",
                        to="submission.Track",
                    ),
                ),
            ],
            options={"unique_together": {("event", "code")},},
            bases=(
                pretalx.common.mixins.models.LogMixin,
                pretalx.common.mixins.models.GenerateCode,
                models.Model,
            ),
        ),
        migrations.AddField(
            model_name="submission",
            name="access_code",
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                related_name="submissions",
                to="submission.SubmitterAccessCode",
            ),