-
Notifications
You must be signed in to change notification settings - Fork 27
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
Notice admin updated #225
base: master
Are you sure you want to change the base?
Notice admin updated #225
Conversation
@dhruvhacks Can you please resolve the conflicts. |
@RishabhJain2018 Merge conflicts resolved and build failures fixed. Please review the PR. |
notices/admin.py
Outdated
|
||
|
||
class NoticeAdmin(ImportExportModelAdmin): |
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.
I think we shouldn't remove the ImportExportModelAdmin
from Notice admin.
notices/admin.py
Outdated
|
||
|
||
admin.site.register(Notice, NoticeAdmin) | ||
admin.site.register(BookmarkedNotice, BookmarkedNoticeAdmin) | ||
admin.site.register(TrendingInCollege, TrendingInCollegeAdmin) | ||
# admin.site.register(TrendingInCollege, TrendingInCollegeAdmin) #Unused model |
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.
Well, this isn't the unused model. we display it on the landing page of Infoconnect. Please revert this.
wifi/models.py
Outdated
@@ -5,40 +5,50 @@ | |||
|
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.
Also, I think your editor have screwed up the indentation. Can you please fix it.
wifi/views.py
Outdated
@@ -17,116 +17,128 @@ | |||
|
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.
I don't think this file is a part of this PR. Can you please remove it.
wifi/models.py
Outdated
@@ -5,40 +5,50 @@ | |||
|
|||
|
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.
I don't think this file is a part of this PR. Can you please remove it.
264290c
to
eda12f2
Compare
@RishabhJain2018 All the requested changes have been reverted. |
notices/admin.py
Outdated
}), | ||
) | ||
|
||
|
||
class TrendingInCollegeAdmin(ImportExportModelAdmin): | ||
class TrendingInCollegeAdmin(admin.ModelAdmin): |
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.
The admin class change isn't the part of this PR. We can have a separate PR for it. Can you please change 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.
Sure sir. 🙂
652d30c
to
eda12f2
Compare
@RishabhJain2018 changes updated, Please review the PR. 🙂 |
Hey @dhruvhacks I checked it and found that it would not be a good way of displaying it, once the list populates with large number of users. Currently, we can add searching the Bookmarks admin. |
@dhruvhacks Any update on this?? |
@RishabhJain2018
We may set a limit (say 10) for no. of users to be displayed who bookmarked the specific notice. Sorry for the late reply. |
@dhruvhacks Feel free to merge this as well. |
@RishabhJain2018 Okay sir. Will update the PR and consider merging! |
Following PR fixes #52 and fixes #170
Notices bookmarked by users are listed at end of that specific notice now.
Admin Interface
displaying bookmarked notice section at the end of edit notice menu