1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-07-28 20:51:43 +02:00
Files
api
chat
management
migrations
0001_initial.py
0002_alter_channel_options_channel_category.py
0003_message_users_read.py
__init__.py
static
templates
__init__.py
admin.py
apps.py
consumers.py
models.py
signals.py
tests.py
urls.py
docs
draw
locale
logs
participation
registration
tfjm
.bashrc
.dockerignore
.gitignore
.gitlab-ci.yml
Dockerfile
LICENSE
README.md
entrypoint.sh
manage.py
nginx_tfjm.conf
requirements.txt
tfjm.cron
tox.ini
plateforme-tfjm2/chat/migrations/0003_message_users_read.py
Emmy D'Anello 519688d997 Store what messages are read
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
2024-04-28 23:25:15 +02:00

27 lines
724 B
Python

# Generated by Django 5.0.3 on 2024-04-28 18:52
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("chat", "0002_alter_channel_options_channel_category"),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.AddField(
model_name="message",
name="users_read",
field=models.ManyToManyField(
blank=True,
help_text="Users who have read the message.",
related_name="+",
to=settings.AUTH_USER_MODEL,
verbose_name="users read",
),
),
]