Skip to content

Commit

Permalink
Rename to standard approach.
Browse files Browse the repository at this point in the history
  • Loading branch information
augustjohnson committed Oct 9, 2024
1 parent e742ec8 commit 958eee9
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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',
),
]
6 changes: 3 additions & 3 deletions api_v2/models/creature.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 958eee9

Please sign in to comment.