add position update API endpoint and remove old one, also some more api tweaks
This commit is contained in:
parent
92ce608034
commit
d6b9161345
9 changed files with 73 additions and 89 deletions
|
@ -535,9 +535,6 @@ def position_detail(request, pk):
|
|||
if request.POST.get('reset_secret', None):
|
||||
position.secret = get_position_secret()
|
||||
|
||||
if request.POST.get('reset_api_secret', None):
|
||||
position.api_secret = get_position_api_secret()
|
||||
|
||||
form = PositionForm(instance=position, data=request.POST)
|
||||
if form.is_valid():
|
||||
form.save()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue