From e4c94aa971c3f974563ae083ebed8534bb25b24c Mon Sep 17 00:00:00 2001 From: Matt <38562764+LavMatt@users.noreply.github.com> Date: Thu, 10 Oct 2024 14:15:55 +0100 Subject: [PATCH] feat: add switch for table details is_nullable column (#927) * feat: add switch for table details is_nullable column we are turning this off because currently metadata are not accurate * test: update unit test to mock waffle switch --- Makefile | 1 + templates/details_table.html | 9 +++++++-- tests/test_views.py | 14 ++++++++++---- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 01c139c5..f87ee910 100644 --- a/Makefile +++ b/Makefile @@ -54,6 +54,7 @@ migrate: setup_waffle_switches: poetry run python manage.py waffle_switch search-sort-radio-buttons off --create poetry run python manage.py waffle_switch display-result-tags off --create + poetry run python manage.py waffle_switch show_is_nullable_in_table_details_column off --create # Run makemessages messages: diff --git a/templates/details_table.html b/templates/details_table.html index da9835b7..fbe10eda 100644 --- a/templates/details_table.html +++ b/templates/details_table.html @@ -1,6 +1,7 @@ {% extends "details_base.html" %} {% load markdown %} {% load i18n %} +{% load waffle_tags %} {% block extra_details %}