Princeton-CDH / mep-django

@@ -469,7 +469,17 @@
Loading
469 469
        'accounts.Event': {
470 470
            'post_save': WorkSignalHandlers.event_save,
471 471
            'pre_delete': WorkSignalHandlers.event_delete,
472 -
        }
472 +
        },
473 +
        # unfortunately the generic event signals aren't fired
474 +
        # when subclass types are edited directly, so bind the same signal
475 +
        'accounts.Borrow': {
476 +
            'post_save': WorkSignalHandlers.event_save,
477 +
            'pre_delete': WorkSignalHandlers.event_delete,
478 +
        },
479 +
        'accounts.Purchase': {
480 +
            'post_save': WorkSignalHandlers.event_save,
481 +
            'pre_delete': WorkSignalHandlers.event_delete,
482 +
        },
473 483
    }
474 484
475 485
    @classmethod

@@ -1,4 +1,4 @@
Loading
1 -
__version_info__ = (1, 2, 1, None)
1 +
__version_info__ = (1, 2, 2, None)
2 2
3 3
4 4
# Dot-connect all but the last. Last is dash-connected if not None.

@@ -217,8 +217,10 @@
Loading
217 217
# fallback for all protocols: block it
218 218
CSP_DEFAULT_SRC = "'none'"
219 219
220 -
# allow loading js locally and from google (for analytics)
221 -
CSP_SCRIPT_SRC = ("'self'", 'www.googletagmanager.com', '*.google-analytics.com')
220 +
# allow loading js locally, from google (for analytics), and
221 +
# nytimes github (for svg crowbar)
222 +
CSP_SCRIPT_SRC = ("'self'", 'www.googletagmanager.com',
223 +
                  '*.google-analytics.com', 'nytimes.github.io')
222 224
223 225
# allow loading fonts locally only
224 226
CSP_FONT_SRC = ("'self'",)

@@ -3,7 +3,8 @@
Loading
3 3
from dal import autocomplete
4 4
from django.conf import settings
5 5
from django.contrib import messages
6 -
from django.contrib.auth.mixins import PermissionRequiredMixin
6 +
from django.contrib.auth.mixins import LoginRequiredMixin, \
7 +
    PermissionRequiredMixin
7 8
from django.contrib.humanize.templatetags.humanize import ordinal
8 9
from django.core.exceptions import MultipleObjectsReturned
9 10
from django.core.paginator import Paginator
@@ -22,9 +23,8 @@
Loading
22 23
from mep.accounts.templatetags.account_tags import as_ranges
23 24
from mep.common import SCHEMA_ORG
24 25
from mep.common.utils import absolutize_url, alpha_pagelabels
25 -
from mep.common.views import (AjaxTemplateMixin, FacetJSONMixin,
26 -
                              LabeledPagesMixin, SolrLastModifiedMixin,
27 -
                              LoginRequiredOr404Mixin, RdfViewMixin)
26 +
from mep.common.views import AjaxTemplateMixin, FacetJSONMixin, \
27 +
    LabeledPagesMixin, RdfViewMixin, SolrLastModifiedMixin
28 28
from mep.people.forms import MemberSearchForm, PersonMergeForm
29 29
from mep.people.geonames import GeoNamesAPI
30 30
from mep.people.models import Country, Location, Person
@@ -628,7 +628,7 @@
Loading
628 628
        return context
629 629
630 630
631 -
class MembershipGraphs(LoginRequiredOr404Mixin, TemplateView):
631 +
class MembershipGraphs(LoginRequiredMixin, TemplateView):
632 632
    model = Person
633 633
    template_name = 'people/member_graphs.html'
634 634
Files Coverage
mep 98.43%
srcmedia/ts 86.55%
Project Totals (223 files) 98.00%
2472.1
TRAVIS_PYTHON_VERSION=3.5
TRAVIS_OS_NAME=linux
2471.1
TRAVIS_PYTHON_VERSION=3.5
TRAVIS_OS_NAME=linux
2476.1
TRAVIS_PYTHON_VERSION=3.5
TRAVIS_OS_NAME=linux

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading