Skip to content

Commit 67978b6

Browse files
smcollagjohnson
authored andcommitted
lint bookmarks app (#2872)
1 parent df52689 commit 67978b6

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

prospector-more.yml

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ strictness: medium
44

55
ignore-paths:
66
- api/
7-
- bookmarks/
87
- builds/
98
- cdn/
109
- comments/

readthedocs/bookmarks/models.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Models for the bookmarks app."""
2+
13
from django.db import models
24
from django.contrib.auth.models import User
35
from django.utils.translation import ugettext_lazy as _, ugettext
@@ -7,6 +9,9 @@
79

810

911
class Bookmark(models.Model):
12+
13+
"""A user's bookmark of a ``Project``, ``Version``, and page."""
14+
1015
user = models.ForeignKey(User, verbose_name=_('User'),
1116
related_name='bookmarks')
1217
project = models.ForeignKey(Project, verbose_name=_('Project'),

readthedocs/bookmarks/urls.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""URL config for the bookmarks app."""
2+
13
from django.conf.urls import url
24
from readthedocs.bookmarks.views import BookmarkListView
35
from readthedocs.bookmarks.views import BookmarkAddView, BookmarkRemoveView

readthedocs/bookmarks/views.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Views for the bookmarks app."""
2+
13
from django.contrib.auth.decorators import login_required
24
from django.http import HttpResponse, HttpResponseRedirect
35
from django.http import HttpResponseBadRequest

0 commit comments

Comments
 (0)