forked from embassynetwork/modernomad
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from jdxnlabs/add-subscription-migrations
Add subscription migrations
- Loading branch information
Showing
6 changed files
with
67 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ | |
from .user import UserFactory | ||
|
||
|
||
|
||
class BillFactory(DjangoModelFactory): | ||
"""Bookings or BillLineItem""" | ||
|
||
|
62 changes: 62 additions & 0 deletions
62
core/migrations/0006_remove_backing_subscription_and_more.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,62 @@ | ||
# Generated by Django 5.0.7 on 2024-09-21 19:26 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("core", "0005_membership"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="backing", | ||
name="subscription", | ||
), | ||
migrations.RemoveField( | ||
model_name="subscriptionbill", | ||
name="subscription", | ||
), | ||
migrations.RemoveField( | ||
model_name="subscriptionnote", | ||
name="subscription", | ||
), | ||
migrations.RemoveField( | ||
model_name="subscriptionbill", | ||
name="bill_ptr", | ||
), | ||
migrations.RemoveField( | ||
model_name="subscriptionnote", | ||
name="created_by", | ||
), | ||
migrations.AlterField( | ||
model_name="emailtemplate", | ||
name="context", | ||
field=models.CharField(choices=[("booking", "Booking")], max_length=32), | ||
), | ||
migrations.AlterField( | ||
model_name="locationemailtemplate", | ||
name="key", | ||
field=models.CharField( | ||
choices=[ | ||
("admin_daily_update", "Admin Daily Update"), | ||
("guest_daily_update", "Guest Daily Update"), | ||
("invoice", "Invoice"), | ||
("receipt", "Booking Receipt"), | ||
("newbooking", "New Booking"), | ||
("pre_arrival_welcome", "Pre-Arrival Welcome"), | ||
("departure", "Departure"), | ||
], | ||
max_length=32, | ||
), | ||
), | ||
migrations.DeleteModel( | ||
name="Subscription", | ||
), | ||
migrations.DeleteModel( | ||
name="SubscriptionBill", | ||
), | ||
migrations.DeleteModel( | ||
name="SubscriptionNote", | ||
), | ||
] |
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 |
---|---|---|
@@ -1 +1 @@ | ||
ruff==0.6.5 | ||
ruff==0.6.7 |