Skip to content

Commit

Permalink
fix: suppression de type dans EmailLastSeen (#905)
Browse files Browse the repository at this point in the history
## Description

🎸 `EmailLastSeenKind` contient des valeurs qui ne seront pas utilisées.
Ces valeurs sont celles d'actions réservées aux utilisateurs connectés.
Elles seront donc déjà enregistrées via le type `Logged` avec le mise en
place du middleware `MarkAsSeenLoggedUserMiddleware` de #894

## Type de changement

🚧 technique

### Points d'attention

🦺 Issue #888
  • Loading branch information
vincentporte authored Feb 11, 2025
1 parent 8abf9ef commit a21b502
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lacommunaute/users/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,5 @@ class IdentityProvider(models.TextChoices):

class EmailLastSeenKind(models.TextChoices):
POST = "POST", "message"
DSP = "DSP", "Diag Parcours IAE"
EVENT = "EVENT", "évènement public"
UPVOTE = "UPVOTE", "abonnement"
FORUM_RATING = "FORUM_RATING", "notation de forum"
LOGGED = "LOGGED", "connexion"
VISITED = "VISITED", "notification cliquée"
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Generated by Django 5.1.5 on 2025-02-11 09:43

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("users", "0006_emaillastseen"),
]

operations = [
migrations.AlterField(
model_name="emaillastseen",
name="last_seen_kind",
field=models.CharField(
choices=[
("POST", "message"),
("LOGGED", "connexion"),
("VISITED", "notification cliquée"),
],
max_length=12,
verbose_name="last seen kind",
),
),
]

0 comments on commit a21b502

Please sign in to comment.