Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added csv option #228

Merged
merged 7 commits into from
Nov 11, 2023
Merged

Added csv option #228

merged 7 commits into from
Nov 11, 2023

Conversation

Benji47
Copy link

@Benji47 Benji47 commented Nov 10, 2023

No description provided.

@kovacspe kovacspe requested a review from mmihalik November 10, 2023 22:39
header = ProfileExportSerializer.Meta.fields
writer = csv.DictWriter(response, fieldnames=header)
writer.writeheader()
for row in serializer.data:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tu by sa dalo použiť writerows miesto for loopu

mmihalik
mmihalik previously approved these changes Nov 11, 2023
Copy link
Collaborator

@mmihalik mmihalik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Schválené s jedným voliteľným návrhom na zapracovanie

@kovacspe kovacspe merged commit c249fab into master Nov 11, 2023
2 checks passed
@kovacspe kovacspe deleted the Profile-export-serializer branch November 11, 2023 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants