diff --git a/exodus/reports/migrations/0014_alter_application_version.py b/exodus/reports/migrations/0014_alter_application_version.py new file mode 100644 index 00000000..c7a7bd7d --- /dev/null +++ b/exodus/reports/migrations/0014_alter_application_version.py @@ -0,0 +1,18 @@ +# Generated by Django 5.2.13 on 2026-08-28 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('reports', '0013_alter_application_version_code'), + ] + + operations = [ + migrations.AlterField( + model_name='application', + name='version', + field=models.CharField(max_length=100), + ), + ] diff --git a/exodus/reports/models.py b/exodus/reports/models.py index 03fbfd82..4765fe4f 100644 --- a/exodus/reports/models.py +++ b/exodus/reports/models.py @@ -60,7 +60,7 @@ class Application(models.Model): name = models.CharField(max_length=200, default='') creator = models.CharField(max_length=200, default='') downloads = models.CharField(max_length=200, default='') - version = models.CharField(max_length=50) + version = models.CharField(max_length=100) version_code = models.CharField(max_length=100, default='') icon_path = models.CharField(max_length=500, default='') app_uid = models.CharField(max_length=128, default='') diff --git a/exodus/reports/templates/reports_list.html b/exodus/reports/templates/reports_list.html index 4e936d71..5baf6176 100644 --- a/exodus/reports/templates/reports_list.html +++ b/exodus/reports/templates/reports_list.html @@ -63,7 +63,7 @@

{% endif %} -
{% trans "Version" %} {{ app.version|truncatechars_html:20 }}{% if app.source %} - {{ app.source }}{% endif %}
+
{% trans "Version" %} {{ app.version|truncatechars_html:20 }}{% if app.source %} - {{ app.source }}{% endif %}
{% with nb_trackers=report.found_trackers.count %} diff --git a/exodus/reports/tests.py b/exodus/reports/tests.py index 53a5f0aa..8603874a 100644 --- a/exodus/reports/tests.py +++ b/exodus/reports/tests.py @@ -103,3 +103,20 @@ def test_should_ensure_reports_total_count_stays_with_filter_no_trackers(self): self.assertEqual(response.status_code, 200) self.assertEqual(response.context['reports_total_count'], 2) + + +class ApplicationModelTests(TestCase): + + def test_version_longer_than_50_chars_is_supported(self): + long_version = 'flavorpreviewRelease-10.0.0.191210.1822.126-RELEASE' + report = Report.objects.create() + application = Application.objects.create( + report=report, + handle='ch.sbb.mobile.android.preview', + version=long_version, + ) + + self.assertEqual( + Application.objects.get(pk=application.pk).version, + long_version, + )