Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor UpcomingInvoice so it's no longer a subclass of Invoice #1077

Merged
merged 2 commits into from
Dec 14, 2019

Conversation

therefromhere
Copy link
Contributor

@therefromhere therefromhere commented Dec 14, 2019

This is to allow Invoice to use ManyToManyFields - see #1027 .

I did try changing UpcomingInvoice to use abstract=True, but that breaks a lot of the related field logic (eg field.related_model becomes a string instead of a class), so I think it's simpler to just have an unused table.

I'll hold off on merging this until I've confirmed it resolves the issues from #1027

@therefromhere therefromhere force-pushed the upcoming_invoice_refactor branch from ef28789 to 0d15b5e Compare December 14, 2019 01:07
This is to allow Invoice to use ManyToManyFields.
@therefromhere therefromhere force-pushed the upcoming_invoice_refactor branch from 0d15b5e to 1d6124a Compare December 14, 2019 01:23
@codecov
Copy link

codecov bot commented Dec 14, 2019

Codecov Report

Merging #1077 into master will decrease coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1077      +/-   ##
==========================================
- Coverage   97.59%   97.55%   -0.04%     
==========================================
  Files          25       25              
  Lines        2457     2459       +2     
  Branches      223      223              
==========================================
+ Hits         2398     2399       +1     
- Misses         45       46       +1     
  Partials       14       14
Impacted Files Coverage Δ
djstripe/models/billing.py 99.73% <100%> (-0.27%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ea3fe3a...c1a29ff. Read the comment docs.

Copy link
Member

@kavdev kavdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@therefromhere therefromhere merged commit 7ea0953 into dj-stripe:master Dec 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants