-
Notifications
You must be signed in to change notification settings - Fork 56
Added details of contest in Admin Dashboard #160
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
Added details of contest in Admin Dashboard #160
Conversation
oshc/main/admin.py
Outdated
@@ -9,6 +9,9 @@ | |||
class chatSessionAdmin(admin.ModelAdmin): | |||
list_display = ('title', 'start_date') | |||
|
|||
class contestAdmin(admin.ModelAdmin): | |||
list_display = ('name', 'link', 'description', 'start_date', 'end_date', 'approved') |
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.
line too long (88 > 79 characters)
oshc/main/admin.py
Outdated
@@ -9,6 +9,9 @@ | |||
class chatSessionAdmin(admin.ModelAdmin): | |||
list_display = ('title', 'start_date') | |||
|
|||
class contestAdmin(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.
expected 2 blank lines, found 1
60bd0af
to
f92f75d
Compare
@@ -10,5 +10,9 @@ class chatSessionAdmin(admin.ModelAdmin): | |||
list_display = ('title', 'start_date') | |||
|
|||
|
|||
class contestAdmin(admin.ModelAdmin): | |||
list_display = ('name', 'link', 'description', 'start_date', 'end_date', 'approved') |
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 won't enable inline edit. Admin still need to go inside the event and say approve/disapprove and save.
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.
If we enable inline edit than it's cool!
Closed with 575c764. |
Checklist
develop
branch.Which issue does this PR fix?: fixes #159
Why do we need this PR?:
Admin Dashboard does not show details of contest so admin have to click on each and every contest to get details of contests
Demo (optional):
