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.
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
Team page #149
base: main
Are you sure you want to change the base?
Team page #149
Changes from 37 commits
1b74e6e
8444015
86d134d
b63753e
21f06b0
1cbbfcb
393a8b2
2b2c602
2448232
1f25a8d
0957689
0f96a94
f3d8796
e540e5e
ec7265c
d831b7f
301a96d
7764e60
2394e7e
b44baa4
f1debe5
5b05494
c7bb70a
110917f
6d446bd
1639e76
bbd88ca
a00ee2c
98c6858
8ef8c1b
e049df2
90f109f
d3443fa
11eea97
8136437
90227bd
dc2db60
fb6707e
e56b127
49ea960
228392c
d51e36b
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed on call, any reason for this? I think it'll be better to make another model or something called
Post
and have aForeignKey
linking to that table.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right, would the mapping remain the same for the core posts then? Like rn I'm having a POST_CHOICES which maps every core post to a number, according to which the core posts are fetched and displayed. So can I move this exact logic to the Post model when I create it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could also go into the
Post
model. Then no need to differentiate by like faculty posts and stuffThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope. I would like Faculty to be in a different model. Core members have to be Executive Members, Faculty will only be Users. The foreign key references will be different.
Also, access control in the future will be much easier if we have these models separate.