diff --git a/api_v2/migrations/0003_rename_long_range_ft_creatureactionattack_long_range_and_more.py b/api_v2/migrations/0003_rename_long_range_ft_creatureactionattack_long_range_and_more.py new file mode 100644 index 00000000..387f4c63 --- /dev/null +++ b/api_v2/migrations/0003_rename_long_range_ft_creatureactionattack_long_range_and_more.py @@ -0,0 +1,28 @@ +# Generated by Django 5.1.1 on 2024-10-09 16:18 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('api_v2', '0002_creatureactionattack_distance_unit_and_more'), + ] + + operations = [ + migrations.RenameField( + model_name='creatureactionattack', + old_name='long_range_ft', + new_name='long_range', + ), + migrations.RenameField( + model_name='creatureactionattack', + old_name='range_ft', + new_name='range', + ), + migrations.RenameField( + model_name='creatureactionattack', + old_name='reach_ft', + new_name='reach', + ), + ] diff --git a/api_v2/models/creature.py b/api_v2/models/creature.py index 9d99e238..8f538a82 100644 --- a/api_v2/models/creature.py +++ b/api_v2/models/creature.py @@ -235,9 +235,9 @@ class CreatureActionAttack(HasName): help_text='Attack roll modifier.' ) - reach_ft = distance_field() - range_ft = distance_field() - long_range_ft = distance_field() + reach = distance_field() + range = distance_field() + long_range = distance_field() distance_unit = distance_unit_field() def get_distance_unit(self):