2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-12 10:05:39 +00:00

Fixing python errors

This commit is contained in:
Oliver
2017-04-11 17:21:05 +10:00
parent 1cddec1035
commit 338dcd3b72
19 changed files with 28 additions and 25 deletions

View File

@ -2,7 +2,6 @@ from __future__ import unicode_literals
from django.utils.translation import ugettext as _
from django.db import models
from django.db.models import Sum
from django.core.exceptions import ObjectDoesNotExist, ValidationError
from InvenTree.models import InvenTreeTree
@ -116,7 +115,7 @@ class PartParameterTemplate(models.Model):
PARAM_BOOL: _("Bool")
}
format = models.IntegerField(
format = models.PositiveIntegerField(
default=PARAM_NUMERIC,
choices=PARAM_TYPE_CODES.items())