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

What is the best way to integrate secretballot with DRF ? #52

Open
AdrienLemaire opened this issue Oct 10, 2018 · 2 comments
Open

What is the best way to integrate secretballot with DRF ? #52

AdrienLemaire opened this issue Oct 10, 2018 · 2 comments
Assignees

Comments

@AdrienLemaire
Copy link

I have a Django Rest Framework api, and integrated secretballot with one of my models.

I see that django-secretballot auto-generated some views

$ docker exec -ti $(docker ps |grep 'backend'|awk '{print $1}') ./manage.py show_urls | grep vote
/secretballot/vote/     django.contrib.admin.options.changelist_view  admin:secretballot_vote_changelist
/secretballot/vote/<path:object_id>/    django.views.generic.base.RedirectView
/secretballot/vote/<path:object_id>/change/     django.contrib.admin.options.change_view       admin:secretballot_vote_change                                                                                                   
/secretballot/vote/<path:object_id>/delete/     django.contrib.admin.options.delete_view       admin:secretballot_vote_delete                                                                                                   
/secretballot/vote/<path:object_id>/history/    django.contrib.admin.options.history_view      admin:secretballot_vote_history                                                                                                  
/secretballot/vote/add/ django.contrib.admin.options.add_view   admin:secretballot_vote_add
/secretballot/vote/autocomplete/        django.contrib.admin.options.autocomplete_view admin:secretballot_vote_autocomplete

But we only make public our api (all urls starting with /api/), and I'd like a format that is more aligned to DRF standards.
@jamesturk have you already used DRF before ? if yes, do you have any suggestion for a solution more tightly coupled with DRF ? Other projects have a viewset or serializer available to make it DRF-compatible.

@jamesturk
Copy link
Contributor

jamesturk commented Oct 10, 2018 via email

@bashu bashu self-assigned this Nov 28, 2020
@bashu bashu reopened this Nov 28, 2020
@bashu
Copy link
Owner

bashu commented Nov 29, 2020

@AdrienLemaire will be done in upcoming 2.0.1

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

No branches or pull requests

3 participants