File tree 4 files changed +9
-1
lines changed
4 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ strictness: medium
4
4
5
5
ignore-paths :
6
6
- api/
7
- - bookmarks/
8
7
- builds/
9
8
- cdn/
10
9
- comments/
Original file line number Diff line number Diff line change
1
+ """Models for the bookmarks app."""
2
+
1
3
from django .db import models
2
4
from django .contrib .auth .models import User
3
5
from django .utils .translation import ugettext_lazy as _ , ugettext
7
9
8
10
9
11
class Bookmark (models .Model ):
12
+
13
+ """A user's bookmark of a ``Project``, ``Version``, and page."""
14
+
10
15
user = models .ForeignKey (User , verbose_name = _ ('User' ),
11
16
related_name = 'bookmarks' )
12
17
project = models .ForeignKey (Project , verbose_name = _ ('Project' ),
Original file line number Diff line number Diff line change
1
+ """URL config for the bookmarks app."""
2
+
1
3
from django .conf .urls import url
2
4
from readthedocs .bookmarks .views import BookmarkListView
3
5
from readthedocs .bookmarks .views import BookmarkAddView , BookmarkRemoveView
Original file line number Diff line number Diff line change
1
+ """Views for the bookmarks app."""
2
+
1
3
from django .contrib .auth .decorators import login_required
2
4
from django .http import HttpResponse , HttpResponseRedirect
3
5
from django .http import HttpResponseBadRequest
You can’t perform that action at this time.
0 commit comments