From 7e0a5fc60978836a77b474910c003e66761983e2 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 18 Feb 2022 14:55:57 -0500 Subject: [PATCH] [rentals] Add Notes field to LockerInfo --- rentals/migrations/0002_lockerinfo_notes.py | 18 ++++++++++++++++++ rentals/models.py | 1 + 2 files changed, 19 insertions(+) create mode 100644 rentals/migrations/0002_lockerinfo_notes.py diff --git a/rentals/migrations/0002_lockerinfo_notes.py b/rentals/migrations/0002_lockerinfo_notes.py new file mode 100644 index 0000000..c6f6395 --- /dev/null +++ b/rentals/migrations/0002_lockerinfo_notes.py @@ -0,0 +1,18 @@ +# Generated by Django 4.0.2 on 2022-02-18 19:54 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("rentals", "0001_initial"), + ] + + operations = [ + migrations.AddField( + model_name="lockerinfo", + name="notes", + field=models.TextField(blank=True), + ), + ] diff --git a/rentals/models.py b/rentals/models.py index a63fabe..55b1a4d 100644 --- a/rentals/models.py +++ b/rentals/models.py @@ -85,6 +85,7 @@ class LockerInfo(models.Model): renter = models.ForeignKey( Member, on_delete=models.CASCADE, null=True, blank=True, db_constraint=False ) + notes = models.TextField(blank=True) class Meta: constraints = [