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

exercise 1 / erfan naderi & nima salamat #18

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

erfannaderi0
Copy link

No description provided.



class Provider(BaseModel):
user = models.ForeignKey(User, on_delete=models.CASCADE)
Copy link
Collaborator

Choose a reason for hiding this comment

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

user has one to one relation with provider

COMPLETED = "com", 'completed'

user = models.ForeignKey(User, on_delete=models.CASCADE)
provider = models.OneToOneField(Provider, on_delete=models.CASCADE)
Copy link
Collaborator

Choose a reason for hiding this comment

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

provider should be ForeignKey

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.

4 participants