Browse Source

Remove unused imports, cleanup.

pull/358/head
Pēteris Caune 5 years ago
parent
commit
8c7d3570a5
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
6 changed files with 3 additions and 10 deletions
  1. +0
    -1
      hc/api/views.py
  2. +1
    -3
      hc/front/admin.py
  3. +1
    -3
      hc/front/models.py
  4. +1
    -1
      hc/front/tests/test_copy.py
  5. +0
    -1
      hc/front/views.py
  6. +0
    -1
      hc/payments/models.py

+ 0
- 1
hc/api/views.py View File

@ -19,7 +19,6 @@ from hc.api import schemas
from hc.api.decorators import authorize, authorize_read, cors, validate_json from hc.api.decorators import authorize, authorize_read, cors, validate_json
from hc.api.models import Check, Notification, Channel from hc.api.models import Check, Notification, Channel
from hc.lib.badges import check_signature, get_badge_svg from hc.lib.badges import check_signature, get_badge_svg
from hc.lib.jsonschema import ValidationError, validate
class BadChannelException(Exception): class BadChannelException(Exception):


+ 1
- 3
hc/front/admin.py View File

@ -1,3 +1 @@
from django.contrib import admin
# Register your models here.
# The front app has no models.

+ 1
- 3
hc/front/models.py View File

@ -1,3 +1 @@
from django.db import models
# Create your models here.
# The front app has no models.

+ 1
- 1
hc/front/tests/test_copy.py View File

@ -1,4 +1,4 @@
from hc.api.models import Channel, Check
from hc.api.models import Check
from hc.test import BaseTestCase from hc.test import BaseTestCase


+ 0
- 1
hc/front/views.py View File

@ -291,7 +291,6 @@ def serve_doc(request, doc="introduction"):
ctx = { ctx = {
"page": "docs", "page": "docs",
"section": "home",
"section": doc, "section": doc,
"content": content, "content": content,
"first_line": content.split("\n")[0], "first_line": content.split("\n")[0],


+ 0
- 1
hc/payments/models.py View File

@ -1,7 +1,6 @@
from django.conf import settings from django.conf import settings
from django.contrib.auth.models import User from django.contrib.auth.models import User
from django.db import models from django.db import models
from django.template.loader import render_to_string
if settings.USE_PAYMENTS: if settings.USE_PAYMENTS:
import braintree import braintree


Loading…
Cancel
Save