Skip to content

Commit

Permalink
price update
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyxiong committed Aug 27, 2016
1 parent 4e395d6 commit 38f036e
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 9 deletions.
21 changes: 12 additions & 9 deletions all.json
Original file line number Diff line number Diff line change
Expand Up @@ -1111,31 +1111,31 @@
},
{
"fields": {
"price": 20,
"price": 25,
"name": "U-Lock"
},
"model": "app.accessorymenuitem",
"pk": 1
},
{
"fields": {
"price": 0,
"price": 20,
"name": "Helmet"
},
"model": "app.accessorymenuitem",
"pk": 2
},
{
"fields": {
"price": 0,
"price": 7,
"name": "Grips"
},
"model": "app.accessorymenuitem",
"pk": 3
},
{
"fields": {
"price": 0,
"price": 9,
"name": "Tape"
},
"model": "app.accessorymenuitem",
Expand All @@ -1151,7 +1151,7 @@
},
{
"fields": {
"price": 0,
"price": 10,
"name": "Lights (Small)"
},
"model": "app.accessorymenuitem",
Expand All @@ -1167,7 +1167,7 @@
},
{
"fields": {
"price": 0,
"price": 12,
"name": "Pedals"
},
"model": "app.accessorymenuitem",
Expand Down Expand Up @@ -1416,23 +1416,26 @@
{
"fields": {
"category": "Brake Pads",
"name": "Caliper"
"name": "Caliper",
"price": "6"
},
"model": "app.partmenuitem",
"pk": 27
},
{
"fields": {
"category": "Brake Pads",
"name": "V-Brakes"
"name": "V-Brakes",
"price": "6"
},
"model": "app.partmenuitem",
"pk": 28
},
{
"fields": {
"category": "Brake Pads",
"name": "Cantilever"
"name": "Cantilever",
"price": "6"
},
"model": "app.partmenuitem",
"pk": 29
Expand Down
2 changes: 2 additions & 0 deletions app/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class Meta:
class RevenueForm(ModelForm):
class Meta:
model = RevenueUpdate
exclude = '__all__'


class PartCategoryForm(ModelForm):
Expand Down Expand Up @@ -84,6 +85,7 @@ class PartOrderForm(Form):
class MiscRevenueUpdateForm(ModelForm):
class Meta:
model = MiscRevenueUpdate
exclude = '__all__'


class SingleNumberForm(Form):
Expand Down
19 changes: 19 additions & 0 deletions app/migrations/0009_auto_20160826_2050.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

dependencies = [
('app', '0008_part_date_submitted'),
]

operations = [
migrations.AlterField(
model_name='part',
name='status',
field=models.CharField(default=b'Available', max_length=50, choices=[(b'Avail', b'Available'), (b'Out', b'Out of Stock'), (b'Ordered', b'Ordered')]),
),
]

0 comments on commit 38f036e

Please sign in to comment.