remove Counter.token

Ce paramètre n'est plus utilisé, maintenant que la gestion de la session du comptoir se fait avec `request.barmen`
This commit is contained in:
imperosol
2026-05-30 13:06:02 +02:00
parent 3cf142f3f1
commit fb1790020b
4 changed files with 3 additions and 7 deletions
+1 -2
View File
@@ -25,8 +25,7 @@ class Migration(migrations.Migration):
"url_base",
models.URLField(
help_text=(
"The base url that links with this type "
"must respect (e.g. `https://www.instagram.com`)"
"The base url that links with this type must respect"
),
unique=True,
verbose_name="url base",
+1 -4
View File
@@ -793,10 +793,7 @@ class LinkType(models.Model):
url_base = models.URLField(
"url base",
unique=True,
help_text=_(
"The base url that links with this type must respect (e.g. `%(url)s`)"
)
% {"url": "https://www.instagram.com"},
help_text=_("The base url that links with this type must respect"),
)
icon = models.CharField(
_("icon"),
@@ -21,4 +21,5 @@ class Migration(migrations.Migration):
verbose_name="clic limit",
),
),
migrations.RemoveField(model_name="counter", name="token"),
]
-1
View File
@@ -619,7 +619,6 @@ class Counter(models.Model):
view_groups = models.ManyToManyField(
Group, related_name="viewable_counters", blank=True
)
token = models.CharField(_("token"), max_length=30, null=True, blank=True)
objects = CounterQuerySet.as_manager()