Skip to content
Snippets Groups Projects
Commit 69e1282d authored by Barnabás Czémán's avatar Barnabás Czémán
Browse files

Add signed and groups for resource

parent ce385c1d
No related branches found
No related tags found
No related merge requests found
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',
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment