diff options
-rw-r--r-- | devel/management/commands/reporead.py | 5 | ||||
-rw-r--r-- | releng/admin.py | 1 | ||||
-rw-r--r-- | releng/views.py | 1 | ||||
-rw-r--r-- | templates/releng/result_section.html | 3 |
4 files changed, 7 insertions, 3 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py index 60ee6ec0..40329f95 100644 --- a/devel/management/commands/reporead.py +++ b/devel/management/commands/reporead.py @@ -527,8 +527,9 @@ def read_repo(primary_arch, repo_file, options): if package.arch in packages_arches: packages_arches[package.arch].append(package) else: - # we don't include mis-arched packages - logger.warning("Package %s arch = %s", package.name, package.arch) + raise Exception( + "Package %s in database %s had wrong architecture %s" % ( + package.name, repo_file, package.arch)) del packages logger.info('Starting database updates for %s.', repo_file) diff --git a/releng/admin.py b/releng/admin.py index e1411b84..42755002 100644 --- a/releng/admin.py +++ b/releng/admin.py @@ -7,6 +7,7 @@ from .models import (Architecture, BootType, Bootloader, ClockChoice, class IsoAdmin(admin.ModelAdmin): list_display = ('name', 'created', 'active', 'removed') list_filter = ('active', 'created') + date_hierarchy = 'created' class TestAdmin(admin.ModelAdmin): list_display = ('user_name', 'user_email', 'created', 'ip_address', diff --git a/releng/views.py b/releng/views.py index 2b3d0936..d8ea59f9 100644 --- a/releng/views.py +++ b/releng/views.py @@ -81,6 +81,7 @@ def calculate_option_overview(field_name): is_rollback = field_name.startswith('rollback_') option = { 'option': model, + 'field_name': field_name, 'name': model._meta.verbose_name, 'is_rollback': is_rollback, 'values': [] diff --git a/templates/releng/result_section.html b/templates/releng/result_section.html index c82a5532..45838b86 100644 --- a/templates/releng/result_section.html +++ b/templates/releng/result_section.html @@ -7,7 +7,8 @@ {% for item in option.values %} <tr> <td> - <a href="{% url 'releng-results-for' option.name|lower item.value.pk %}"> + <a href="{% url releng-results-for option.field_name item.value.pk %}"> + <a href="{% url 'releng-results-for' option.field_name item.value.pk %}"> {{ item.value.name|lower }} </a> </td> |