PEP fixes

This commit is contained in:
Oliver 2021-08-15 12:06:31 +10:00
parent cef09acd54
commit 8861ffad81
3 changed files with 1 additions and 3 deletions

View File

@ -10,8 +10,6 @@ from InvenTree.status_codes import StockHistoryCode
import InvenTree.status import InvenTree.status
import common.models
from users.models import RuleSet from users.models import RuleSet

View File

@ -20,7 +20,6 @@ from djmoney.contrib.exchange.models import convert_money
from djmoney.contrib.exchange.exceptions import MissingRate from djmoney.contrib.exchange.exceptions import MissingRate
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from django.utils.html import format_html
from django.core.validators import MinValueValidator, URLValidator from django.core.validators import MinValueValidator, URLValidator
from django.core.exceptions import ValidationError from django.core.exceptions import ValidationError

View File

@ -282,6 +282,7 @@ def primitive_to_javascript(primitive):
# Wrap with quotes # Wrap with quotes
return format_html("'{}'", primitive) return format_html("'{}'", primitive)
@register.filter @register.filter
def keyvalue(dict, key): def keyvalue(dict, key):
""" """