Skip to content

Commit

Permalink
sort project admin by name - add flake8 exlusions
Browse files Browse the repository at this point in the history
  • Loading branch information
oliche committed Aug 28, 2024
1 parent 92d8d3e commit 6ca45f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[flake8]
exclude =
migrations
__pycache__
manage.py
settings.py
.github
1 change: 1 addition & 0 deletions alyx/subjects/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ def field_choices(self, field, request, model_admin):
class ProjectAdmin(BaseAdmin):
fields = ('name', 'description', 'users')
list_display = ('name', 'subjects_count', 'sessions_count', 'users_l')
ordering = ('name',)

def users_l(self, obj):
return ', '.join(map(str, obj.users.all()))
Expand Down

0 comments on commit 6ca45f9

Please sign in to comment.