Skip to content

Commit

Permalink
Removing deprecated field.
Browse files Browse the repository at this point in the history
  • Loading branch information
augustjohnson committed Mar 15, 2024
1 parent 4a061be commit 13ec326
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
17 changes: 17 additions & 0 deletions api_v2/migrations/0071_remove_spell_school_old.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 3.2.20 on 2024-03-15 12:53

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('api_v2', '0070_spell_school'),
]

operations = [
migrations.RemoveField(
model_name='spell',
name='school_old',
),
]
7 changes: 1 addition & 6 deletions api_v2/models/spell.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,10 @@ class Spell(HasName, HasDescription, FromDocument):
validators=[MinValueValidator(0), MaxValueValidator(9)],
help_text='Integer representing the default slot level required by the spell.')

school_old = models.TextField(
choices = SPELL_SCHOOL_CHOICES,
help_text = "Spell school key, such as 'evocation'")

school = models.ForeignKey(
"SpellSchool",
on_delete=models.CASCADE,
help_text="Spell school, such as 'evocation'"
)
help_text="Spell school, such as 'evocation'")

higher_level = models.TextField(
help_text = "Description of casting the spell at a different level.")
Expand Down

0 comments on commit 13ec326

Please sign in to comment.