Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dimasciput committed Sep 19, 2023
1 parent 5c1f3b0 commit 1ad82a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 0 additions & 4 deletions bims/migrations/0217_update_default_fbis_site_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@

fixture = 'survey_data'

def load_fixture(apps, schema_editor):
call_command('add_default_fbis_location_site_view')


class Migration(migrations.Migration):

Expand All @@ -17,5 +14,4 @@ class Migration(migrations.Migration):
]

operations = [
migrations.RunPython(load_fixture),
]
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@

from django.conf import settings
from django.db import migrations, models
from django.core.management import call_command
import django.db.models.deletion

def load_fixture(apps, schema_editor):
call_command('add_default_fbis_location_site_view')


class Migration(migrations.Migration):

Expand Down Expand Up @@ -33,4 +37,5 @@ class Migration(migrations.Migration):
name='uploader',
field=models.ForeignKey(blank=True, help_text='User who uploaded the taxon image (Optional)', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='taxon_image_uploader', to=settings.AUTH_USER_MODEL),
),
migrations.RunPython(load_fixture),
]

0 comments on commit 1ad82a0

Please sign in to comment.