From d6dedcc6adc15cf0891ea42e391588ee878757ac Mon Sep 17 00:00:00 2001
From: George Katsikas <giorgakis.katsikas@gmail.com>
Date: Thu, 23 Jan 2025 17:51:20 +0100
Subject: [PATCH] =?UTF-8?q?fix(graphs):=20=F0=9F=8E=A8=20inhert=20plot=20k?=
 =?UTF-8?q?ind=20options=20from=20base=20class?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 scipost_django/graphs/graphs/plotkind.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scipost_django/graphs/graphs/plotkind.py b/scipost_django/graphs/graphs/plotkind.py
index 7a409fa73..0b1af91f3 100644
--- a/scipost_django/graphs/graphs/plotkind.py
+++ b/scipost_django/graphs/graphs/plotkind.py
@@ -140,7 +140,7 @@ class TimelinePlot(PlotKind):
 
         return x, y
 
-    class Options(BaseOptions):
+    class Options(PlotKind.Options):
         prefix = "timeline_plot_"
         timeline_key = forms.ChoiceField(
             label="Timeline key", initial="id", required=False, choices=[]
@@ -306,7 +306,7 @@ class MapPlot(PlotKind):
 
         return countries, agg
 
-    class Options(BaseOptions):
+    class Options(PlotKind.Options):
         prefix = "map_plot_"
         agg_func = forms.ChoiceField(
             label="Aggregation function",
@@ -432,7 +432,7 @@ class BarPlot(PlotKind):
         else:
             return [], []
 
-    class Options(BaseOptions):
+    class Options(PlotKind.Options):
         prefix = "bar_plot_"
         direction = forms.ChoiceField(
             label="Direction",
-- 
GitLab