mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 01:16:10 +00:00
fix(tags): at most 12 characters; "…" does not move the columns
- A new or renamed tag has at most 12 characters (computes.models.TAG_LENGTH, a validator: the column keeps 32, so names made before the limit stay usable until renamed and the migration changes no SQL); the tag box offers no longer name. - The tags "…" shows in a table's cell go below the others within the cell's width as it is, so the list's columns no longer move.
This commit is contained in:
parent
0e711ec058
commit
bc1894e4d8
12 changed files with 115 additions and 78 deletions
|
|
@ -40,7 +40,7 @@ class TagAdminTests(TestCase):
|
|||
|
||||
def test_a_name_taken_or_bad_is_refused(self):
|
||||
Tag.objects.create(name="db")
|
||||
for name in ("DB", "two words"):
|
||||
for name in ("DB", "two words", "x" * 13):
|
||||
with self.subTest(name):
|
||||
response = self.client.post(reverse("admin:tag_update", args=[self.prod.pk]), {"name": name})
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue