You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this great app. Perfect for managing a bunch of bookmarks.
What do you think about a warning/message when trying to bookmark a page that's already bookmarked? If that sounds good, give me a couple pointers and I'll give you a PR.
The text was updated successfully, but these errors were encountered:
For quick fix replacing line 32 of bookmarks/models.py from 'url = models.URLField()' to 'url = models.URLField(unique=True)' will prevent duplicate urls from inserting into the database.This is what I am doing right now.
Ideally, instead of trying to insert into database the app should update existing record in case of duplicate urls or even better display existing fields and save updates if any.
* Show hint if URL is already bookmarked
* Remove hint if URL belongs to edited bookmark
* Fix query param encoding
* Update bookmark instead of duplicating it
Co-authored-by: Sascha Ißbrücker <sissbruecker@lyska.io>
Added some handling for this. The form will now check (from client-side, after entering the URL) if the URL is already bookmarked and then show a hint below the input:
The hint provides the option to edit the original bookmark.
If the form is saved regardless, then the existing bookmark is updated instead of creating a new one.
Thanks for this great app. Perfect for managing a bunch of bookmarks.
What do you think about a warning/message when trying to bookmark a page that's already bookmarked? If that sounds good, give me a couple pointers and I'll give you a PR.
The text was updated successfully, but these errors were encountered: