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

How to use it with nested models for creation ? #48

Open
isasiluispy opened this issue Nov 16, 2019 · 0 comments
Open

How to use it with nested models for creation ? #48

isasiluispy opened this issue Nov 16, 2019 · 0 comments

Comments

@isasiluispy
Copy link

isasiluispy commented Nov 16, 2019

class Sale(models.model):
invoice_number = models.CharField(....)

class SaleItem(models.Model):
sale = models.ForeignKey(Sale)
....

How can i use a service for creating a sale with its respective items ? I'll much appreciate the way you would do it.

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

No branches or pull requests

1 participant