File tree 5 files changed +16
-1
lines changed
5 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ ignore-paths:
10
10
- core/
11
11
- doc_builder/
12
12
- donate/
13
- - gold/
14
13
- notifications/
15
14
- payments/
16
15
- privacy/
Original file line number Diff line number Diff line change
1
+ """A Django app for Gold Membership.
2
+
3
+ Gold Membership is Read the Docs' program for recurring, monthly donations.
4
+
5
+ """
1
6
default_app_config = 'readthedocs.gold.apps.GoldAppConfig'
Original file line number Diff line number Diff line change
1
+ """Django admin configuration for the Gold Membership app."""
2
+
1
3
from django .contrib import admin
2
4
from .models import GoldUser
3
5
Original file line number Diff line number Diff line change
1
+ """Django app configuration for the Gold Membership app."""
2
+
1
3
from django .apps import AppConfig
2
4
3
5
Original file line number Diff line number Diff line change
1
+ """Django models for recurring donations aka Gold Membership."""
1
2
import math
2
3
3
4
from django .db import models
4
5
from django .utils .translation import ugettext_lazy as _
5
6
6
7
from readthedocs .projects .models import Project
7
8
9
+
10
+ #: The membership options that are currently available
8
11
LEVEL_CHOICES = (
9
12
('v1-org-5' , '$5/mo' ),
10
13
('v1-org-10' , '$10/mo' ),
14
17
('v1-org-100' , '$100/mo' ),
15
18
)
16
19
20
+ #: An estimate of the cost of supporting one project for a month
17
21
DOLLARS_PER_PROJECT = 5
18
22
19
23
20
24
class GoldUser (models .Model ):
25
+
26
+ """A user subscription for gold membership."""
27
+
21
28
pub_date = models .DateTimeField (_ ('Publication date' ), auto_now_add = True )
22
29
modified_date = models .DateTimeField (_ ('Modified date' ), auto_now = True )
23
30
You can’t perform that action at this time.
0 commit comments