Skip to content

Commit

Permalink
Change default action top behavior (#16)
Browse files Browse the repository at this point in the history
* Remove by default the action on top + toggle
* Remove pypy from python version github workflow
* Bump version
  • Loading branch information
pulse-mind committed Mar 17, 2022
1 parent 37666c6 commit b29ae3e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ '3.8', '3.9', '3.10.0', 'pypy-3.8' ]
python-version: [ '3.8', '3.9', '3.10.0' ]
django-version: [ '3.2.10', '4.0.1' ]
exclude:
- os: macos-latest
Expand Down
2 changes: 1 addition & 1 deletion suit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VERSION = '2.2b1'
VERSION = '2.2b3'
default_app_config = 'suit.apps.DjangoSuitConfig'
4 changes: 3 additions & 1 deletion suit/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class DjangoSuitConfig(AppConfig):
list_per_page = 20

# Show changelist top actions only if any row is selected
toggle_changelist_top_actions = True
toggle_changelist_top_actions = False

# Define menu
#: :type: list of suit.menu.ParentItem
Expand Down Expand Up @@ -91,6 +91,8 @@ def setup_model_admin_defaults(self):
"""
if self.toggle_changelist_top_actions:
ModelAdmin.actions_on_top = True
else:
ModelAdmin.actions_on_top = False
ModelAdmin.actions_on_bottom = True

if self.list_per_page:
Expand Down
1 change: 0 additions & 1 deletion suit/sass/pages/_changelist.scss
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ $filter-col-width: 15rem;
span.question {
font-size: 13px;
margin: 0 0.5em;
display: none;
}
}
// Hide actions, show only after results
Expand Down
3 changes: 1 addition & 2 deletions suit/static/suit/css/suit.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion suit/static/suit/css/suit.min.css

Large diffs are not rendered by default.

0 comments on commit b29ae3e

Please sign in to comment.