forked from dj-stripe/dj-stripe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove deprecated fields: Invoice.closed and Invoice.forgiven (dj-str…
…ipe#1096) Add Invoice.status and enums.InvoiceStatus Fixes dj-stripe#1020
- Loading branch information
1 parent
fcbe1f2
commit 891782a
Showing
8 changed files
with
120 additions
and
251 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,42 @@ | ||
# Generated by Django 2.2 on 2020-01-20 12:49 | ||
|
||
from django.db import migrations | ||
|
||
import djstripe.enums | ||
import djstripe.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("djstripe", "0005_2_2"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField(model_name="invoice", name="closed",), | ||
migrations.RemoveField(model_name="invoice", name="forgiven",), | ||
migrations.RemoveField(model_name="upcominginvoice", name="closed",), | ||
migrations.RemoveField(model_name="upcominginvoice", name="forgiven",), | ||
migrations.AddField( | ||
model_name="invoice", | ||
name="status", | ||
field=djstripe.fields.StripeEnumField( | ||
blank=True, | ||
default="", | ||
enum=djstripe.enums.InvoiceStatus, | ||
help_text="The status of the invoice, one of draft, open, paid, uncollectible, or void.", | ||
max_length=13, | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="upcominginvoice", | ||
name="status", | ||
field=djstripe.fields.StripeEnumField( | ||
blank=True, | ||
default="", | ||
enum=djstripe.enums.InvoiceStatus, | ||
help_text="The status of the invoice, one of draft, open, paid, uncollectible, or void.", | ||
max_length=13, | ||
), | ||
), | ||
] |
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
Oops, something went wrong.