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", "url_base",
models.URLField( models.URLField(
help_text=( help_text=(
"The base url that links with this type " "The base url that links with this type must respect"
"must respect (e.g. `https://www.instagram.com`)"
), ),
unique=True, unique=True,
verbose_name="url base", verbose_name="url base",
+1 -4
View File
@@ -793,10 +793,7 @@ class LinkType(models.Model):
url_base = models.URLField( url_base = models.URLField(
"url base", "url base",
unique=True, unique=True,
help_text=_( help_text=_("The base url that links with this type must respect"),
"The base url that links with this type must respect (e.g. `%(url)s`)"
)
% {"url": "https://www.instagram.com"},
) )
icon = models.CharField( icon = models.CharField(
_("icon"), _("icon"),
@@ -21,4 +21,5 @@ class Migration(migrations.Migration):
verbose_name="clic limit", 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( view_groups = models.ManyToManyField(
Group, related_name="viewable_counters", blank=True Group, related_name="viewable_counters", blank=True
) )
token = models.CharField(_("token"), max_length=30, null=True, blank=True)
objects = CounterQuerySet.as_manager() objects = CounterQuerySet.as_manager()