Moves annual goal to its own file
The user model file is just,, very long
This commit is contained in:
parent
4929dd3b26
commit
2298a478cf
4 changed files with 74 additions and 64 deletions
|
@ -14,6 +14,8 @@ class Migration(migrations.Migration):
|
|||
migrations.AlterField(
|
||||
model_name="annualgoal",
|
||||
name="year",
|
||||
field=models.IntegerField(default=bookwyrm.models.user.get_current_year),
|
||||
field=models.IntegerField(
|
||||
default=bookwyrm.models.annual_goal.get_current_year
|
||||
),
|
||||
),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue