Skip to content

linting for bookmarks app #2872

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion prospector-more.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ strictness: medium

ignore-paths:
- api/
- bookmarks/
- builds/
- cdn/
- comments/
Expand Down
5 changes: 5 additions & 0 deletions readthedocs/bookmarks/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Models for the bookmarks app."""

from django.db import models
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _, ugettext
Expand All @@ -7,6 +9,9 @@


class Bookmark(models.Model):

"""A user's bookmark of a ``Project``, ``Version``, and page."""

user = models.ForeignKey(User, verbose_name=_('User'),
related_name='bookmarks')
project = models.ForeignKey(Project, verbose_name=_('Project'),
Expand Down
2 changes: 2 additions & 0 deletions readthedocs/bookmarks/urls.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""URL config for the bookmarks app."""

from django.conf.urls import url
from readthedocs.bookmarks.views import BookmarkListView
from readthedocs.bookmarks.views import BookmarkAddView, BookmarkRemoveView
Expand Down
2 changes: 2 additions & 0 deletions readthedocs/bookmarks/views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Views for the bookmarks app."""

from django.contrib.auth.decorators import login_required
from django.http import HttpResponse, HttpResponseRedirect
from django.http import HttpResponseBadRequest
Expand Down