readthedocs.bookmarks

readthedocs.bookmarks.admin

Django admin interface for Bookmark.

readthedocs.bookmarks.models

Models for the bookmarks app.

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

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

readthedocs.bookmarks.urls

URL config for the bookmarks app.

readthedocs.bookmarks.views

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

model

alias of 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.