Resubmit - Api group model completion #650 #651
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Issue (include '#'): Group Model Update - Create connections for group functionality. #649
Description of changes made:
Location: one-to-many relationship to Group added on Location Model
Profile: many-to-many relationship to Group added on Profile Model
Posts: one-to-many relationship to Group added on Post Model
Is the feature complete/bug resolved/etc..: yes
Any known bugs/strange behavior: no
Is there specific feedback you would like on these changes:
Please check logic for "on_delete":
Post Model - on_delete=models.CASCADE
Location Model - on_delete=models.PROTECT
Profile - blank
Screenshot(s):
![image](https://user-images.githubusercontent.com/58237351/86605972-61233e80-bf75-11ea-8aed-d4c2d85617b7.png)
![image](https://user-images.githubusercontent.com/58237351/86606359-e4449480-bf75-11ea-9f2b-defffd300120.png)
![image](https://user-images.githubusercontent.com/58237351/86606530-1eae3180-bf76-11ea-9c58-1c5f4b5dbde2.png)
Profile: