mirror of
https://github.com/ae-utbm/sith.git
synced 2026-06-04 23:29:24 +00:00
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:
@@ -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
@@ -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"),
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user