Increase decimal places on request form

This commit is contained in:
Oliver Marks 2017-09-19 21:24:13 +01:00
parent 574286e8e3
commit 833b08980a
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-09-19 20:23
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('requests', '0006_auto_20170906_0804'),
]
operations = [
migrations.AlterField(
model_name='userrequests',
name='cost',
field=models.DecimalField(decimal_places=2, help_text='Leave blank, if no associated cost, or add estimated cost if not sure.', max_digits=6),
),
]

View File

@ -21,7 +21,7 @@ class UserRequests(models.Model):
title = models.CharField(max_length=255, help_text='Whats being requested ?') title = models.CharField(max_length=255, help_text='Whats being requested ?')
request_type = models.IntegerField(choices=REQUEST_TYPES, null=False) request_type = models.IntegerField(choices=REQUEST_TYPES, null=False)
cost = models.DecimalField( cost = models.DecimalField(
max_digits=4, max_digits=6,
decimal_places=2, decimal_places=2,
help_text='Leave blank, if no associated cost, or add estimated cost if not sure.' help_text='Leave blank, if no associated cost, or add estimated cost if not sure.'
) )