Skip to content

Add missing module docstrings for gold app #2873

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 @@ -11,7 +11,6 @@ ignore-paths:
- core/
- doc_builder/
- donate/
- gold/
- notifications/
- oauth/
- payments/
Expand Down
5 changes: 5 additions & 0 deletions readthedocs/gold/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
"""A Django app for Gold Membership.

Gold Membership is Read the Docs' program for recurring, monthly donations.

"""
default_app_config = 'readthedocs.gold.apps.GoldAppConfig'
2 changes: 2 additions & 0 deletions readthedocs/gold/admin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Django admin configuration for the Gold Membership app."""

from django.contrib import admin
from .models import GoldUser

Expand Down
2 changes: 2 additions & 0 deletions readthedocs/gold/apps.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Django app configuration for the Gold Membership app."""

from django.apps import AppConfig


Expand Down
7 changes: 7 additions & 0 deletions readthedocs/gold/models.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
"""Django models for recurring donations aka Gold Membership."""
import math

from django.db import models
from django.utils.translation import ugettext_lazy as _

from readthedocs.projects.models import Project


#: The membership options that are currently available
LEVEL_CHOICES = (
('v1-org-5', '$5/mo'),
('v1-org-10', '$10/mo'),
Expand All @@ -14,10 +17,14 @@
('v1-org-100', '$100/mo'),
)

#: An estimate of the cost of supporting one project for a month
DOLLARS_PER_PROJECT = 5


class GoldUser(models.Model):

"""A user subscription for gold membership."""

pub_date = models.DateTimeField(_('Publication date'), auto_now_add=True)
modified_date = models.DateTimeField(_('Modified date'), auto_now=True)

Expand Down