-
Notifications
You must be signed in to change notification settings - Fork 69
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
Comments
I haven't used DRF with this project, but if you are interested in writing
some helpers to make the project more DRF-compatible I'd be glad to take a
look
…On Tue, Oct 9, 2018 at 11:53 PM Adrien Lemaire ***@***.***> wrote:
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 <https://github.com/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.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#52>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AAAfYuOUHfVvyu9bms5vOjM9YvjiS57iks5ujW82gaJpZM4XUh1Y>
.
|
@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
I have a Django Rest Framework api, and integrated secretballot with one of my models.
I see that django-secretballot auto-generated some views
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.
The text was updated successfully, but these errors were encountered: