-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update referral column type & add tests (#2458)
* change rh referral field from char to foreignkey * merge rh-referral * add test for rent history request with referral * add migration with foreign key from 0004 * frontend test * new migrations to change metadata of column --------- Co-authored-by: Maxwell Austensen <[email protected]>
- Loading branch information
Showing
10 changed files
with
111 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Generated by Django 3.2.13 on 2024-01-18 21:17 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('partnerships', '0001_initial'), | ||
('rh', '0004_rentalhistoryrequest_referral'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='rentalhistoryrequest', | ||
name='referral', | ||
field=models.ForeignKey(blank=True, db_column='referral', null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='partnerships.partnerorg', to_field='name'), | ||
), | ||
] |
17 changes: 17 additions & 0 deletions
17
rh/migrations/0006_remove_rentalhistoryrequest_referral.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 3.2.13 on 2024-01-19 23:38 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('rh', '0005_alter_rentalhistoryrequest_referral'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='rentalhistoryrequest', | ||
name='referral', | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Generated by Django 3.2.13 on 2024-01-19 23:47 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('partnerships', '0001_initial'), | ||
('rh', '0006_remove_rentalhistoryrequest_referral'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='rentalhistoryrequest', | ||
name='referral', | ||
field=models.ForeignKey(blank=True, db_column='referral', null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='partnerships.partnerorg', to_field='name'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ class Meta: | |
address = "123 Funky Way" | ||
borough = "MANHATTAN" | ||
address_verified = False | ||
referral = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters