#26 Return to same page after editing or deleting bookmark

This commit is contained in:
Sascha Ißbrücker
2020-09-13 10:56:03 +02:00
parent 3373667c72
commit c80f26dd34
8 changed files with 55 additions and 16 deletions

View File

@@ -77,7 +77,9 @@ class BookmarkForm(forms.ModelForm):
widget=forms.Textarea())
# Hidden field that determines whether to close window/tab after saving the bookmark
auto_close = forms.CharField(required=False)
# Hidden field that determines where to redirect after saving the form
return_url = forms.CharField(required=False)
class Meta:
model = Bookmark
fields = ['url', 'tag_string', 'title', 'description', 'auto_close']
fields = ['url', 'tag_string', 'title', 'description', 'auto_close', 'return_url']