No flags found
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
7ddede3
... +10 ...
e362c1a
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
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 | 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 | 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 |
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'",) |
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 |
Files | Coverage |
---|---|
mep | 98.43% |
srcmedia/ts | 86.55% |
Project Totals (223 files) | 98.00% |
e362c1a
7c10dfe
2c4003a
38402e8
90941d4
00c940f
b5a8382
02437c3
e0ce22d
0239c2f
b3555f9
7ddede3