From 0e86c96ad3708df0dfc7f1a2a6e1eb5f80399997 Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Tue, 6 May 2025 19:26:47 +0300 Subject: [PATCH] Set default value for is_composite_pk in admin config Added an `is_composite_pk` attribute with a default value of `False` to the admin configuration. This ensures clarity in object definition and supports better configurability for composite primary key scenarios. --- core/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/core/admin.py b/core/admin.py index e11c67f9..50f9d21a 100644 --- a/core/admin.py +++ b/core/admin.py @@ -384,6 +384,7 @@ class ConstanceConfig: verbose_name_plural = _("config") abstract = False swapped = False + is_composite_pk = False def get_ordered_objects(self): return False