3ac8569712
Add user_has_voted_for_delegations. Add tests Prevent self delegation Make delegated_user visible
30 lines
812 B
Python
30 lines
812 B
Python
# Generated by Django 2.2.16 on 2020-09-10 11:02
|
|
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
|
|
import openslides.utils.models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
("assignments", "0014_remove_deprecated_slides"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name="assignmentvote",
|
|
name="delegated_user",
|
|
field=models.ForeignKey(
|
|
blank=True,
|
|
default=None,
|
|
null=True,
|
|
on_delete=openslides.utils.models.SET_NULL_AND_AUTOUPDATE,
|
|
related_name="assignmentvote_delegated_votes",
|
|
to=settings.AUTH_USER_MODEL,
|
|
),
|
|
),
|
|
]
|