Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kszkepzes-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
KSZK
DevTeam
kszkepzes
old
kszkepzes-backend
Commits
69e1282d
Commit
69e1282d
authored
7 years ago
by
Barnabás Czémán
Browse files
Options
Downloads
Patches
Plain Diff
Add signed and groups for resource
parent
ce385c1d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/account/resources.py
+8
-1
8 additions, 1 deletion
src/account/resources.py
with
8 additions
and
1 deletion
src/account/resources.py
+
8
−
1
View file @
69e1282d
from
import_export
import
resources
from
import_export
import
resources
,
widgets
,
fields
from
.
import
models
class
SignUpResource
(
resources
.
ModelResource
):
groups
=
fields
.
Field
(
attribute
=
'
groups
'
,
widget
=
widgets
.
ManyToManyWidget
(
model
=
models
.
GroupChoice
,
separator
=
'
,
'
,
field
=
'
choice
'
),
)
class
Meta
:
model
=
models
.
Profile
fields
=
(
'
user__first_name
'
,
'
user__last_name
'
,
'
user__email
'
,
'
groups
'
,
'
motivation_about
'
,
'
motivation_profession
'
,
'
motivation_exercise
'
,
'
signed
'
,
)
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