mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2025-04-05 17:41:33 +08:00
Rename def for adding landmarks
This commit is contained in:
parent
89087f8566
commit
abed03617e
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ class Landmark(models.Model):
|
||||||
|
|
||||||
|
|
||||||
@receiver(post_migrate)
|
@receiver(post_migrate)
|
||||||
def populate_courses(sender, **kwargs):
|
def populate_landmarks(sender, **kwargs):
|
||||||
if sender.name == 'landmarks':
|
if sender.name == 'landmarks':
|
||||||
SRID = 4326
|
SRID = 4326
|
||||||
Landmark.objects.get_or_create(
|
Landmark.objects.get_or_create(
|
||||||
|
|
Loading…
Add table
Reference in a new issue