From abed03617eaf76d0ca5732ae7deaae18094f0285 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Tue, 11 Jul 2023 15:06:09 +0800 Subject: [PATCH] Rename def for adding landmarks --- stude/landmarks/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stude/landmarks/models.py b/stude/landmarks/models.py index 97578c3..a2fb2dc 100644 --- a/stude/landmarks/models.py +++ b/stude/landmarks/models.py @@ -15,7 +15,7 @@ class Landmark(models.Model): @receiver(post_migrate) -def populate_courses(sender, **kwargs): +def populate_landmarks(sender, **kwargs): if sender.name == 'landmarks': SRID = 4326 Landmark.objects.get_or_create(