Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nk20
Manage
Activity
Members
Labels
Plan
Issues
31
Issue boards
Milestones
Wiki
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BDE
nk20
Commits
acb3fb4a
Commit
acb3fb4a
authored
4 years ago
by
ynerant
Browse files
Options
Downloads
Patches
Plain Diff
Highlight future users that declared that they opened a bank account
parent
beb1853a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!134
Highlight users that created a bank account
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/registration/tables.py
+4
-1
4 additions, 1 deletion
apps/registration/tables.py
with
4 additions
and
1 deletion
apps/registration/tables.py
+
4
−
1
View file @
acb3fb4a
...
...
@@ -4,6 +4,8 @@
import
django_tables2
as
tables
from
django.contrib.auth.models
import
User
from
treasury.models
import
SogeCredit
class
FutureUserTable
(
tables
.
Table
):
"""
...
...
@@ -21,6 +23,7 @@ class FutureUserTable(tables.Table):
fields
=
(
'
last_name
'
,
'
first_name
'
,
'
username
'
,
'
email
'
,
)
model
=
User
row_attrs
=
{
'
class
'
:
'
table-row
'
,
'
class
'
:
lambda
record
:
'
table-row
'
+
(
'
bg-warning
'
if
SogeCredit
.
objects
.
filter
(
user
=
record
).
exists
()
else
''
),
'
data-href
'
:
lambda
record
:
record
.
pk
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment