Django admin interface for Bookmark.

class readthedocs.bookmarks.admin.BookmarkAdmin(model, admin_site)


Models for the bookmarks app.

class readthedocs.bookmarks.models.Bookmark(*args, **kwargs)

A user’s bookmark of a Project, Version, and page.

exception DoesNotExist
exception MultipleObjectsReturned


URL config for the bookmarks app.


Views for the bookmarks app.

class readthedocs.bookmarks.views.BookmarkAddView(**kwargs)

Adds bookmarks in response to POST requests.

post(request, *args, **kwargs)

Add a new bookmark for the current user.

Points at project, version, page, and url.

class readthedocs.bookmarks.views.BookmarkListView(**kwargs)

Displays all of a logged-in user’s bookmarks.


alias of readthedocs.bookmarks.models.Bookmark

class readthedocs.bookmarks.views.BookmarkRemoveView(**kwargs)

Deletes a user’s bookmark in response to a POST request.

Renders a delete? confirmation page in response to a GET request.

post(request, *args, **kwargs)

Delete a bookmark.

Uses the primary key from the URL or JSON data from the request.