From d7a3da21149ea5da231bcb7d3b2ca2b0b39ae68f Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 2 Oct 2023 20:20:13 +0200 Subject: ✨ links to import sheet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/utils.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'ishtar_common/utils.py') diff --git a/ishtar_common/utils.py b/ishtar_common/utils.py index dd2f3afe3..c9bf53fc7 100644 --- a/ishtar_common/utils.py +++ b/ishtar_common/utils.py @@ -1241,9 +1241,6 @@ def get_all_field_names(model): def get_all_related_m2m_objects_with_model(model, related_name=None): - for f in model._meta.get_fields(include_hidden=True): - if f.many_to_many and f.auto_created: - print(f.related_name) return [ (f, f.model if f.model != model else None) for f in model._meta.get_fields(include_hidden=True) -- cgit v1.2.3