Skip to content

Commit

Permalink
Fix location field bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasdeluna committed Oct 19, 2023
1 parent d9db172 commit 10278d8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions lego/apps/lending/migrations/0002_lendableobject_location.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.0.10 on 2023-10-19 18:30

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('lending', '0001_initial'),
]

operations = [
migrations.AddField(
model_name='lendableobject',
name='location',
field=models.CharField(blank=True, max_length=128),
),
]
2 changes: 1 addition & 1 deletion lego/apps/lending/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class LendableObject(BasisModel):
responsible_role = models.CharField(
max_length=30, choices=constants.ROLES, default=constants.MEMBER
)
location = models.CharField(max_length=128, null=False, blank=False)
location = models.CharField(max_length=128, null=False, blank=True)

@property
def get_furthest_booking_date(self):
Expand Down

0 comments on commit 10278d8

Please sign in to comment.