Skip to content

Commit

Permalink
Removes half feature
Browse files Browse the repository at this point in the history
  • Loading branch information
arecker committed Dec 28, 2016
1 parent 8cc2260 commit b34198d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 20 deletions.
4 changes: 2 additions & 2 deletions tracking/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@


class RateAdmin(admin.ModelAdmin):
list_display = ('description', 'active', 'transient', 'amount_per_day', 'amount', 'days')
list_filter = ('active', 'transient')
list_display = ('description', 'active', 'amount_per_day', 'amount', 'days')
list_filter = ('active', )


class TransactionAdmin(admin.ModelAdmin):
Expand Down
27 changes: 27 additions & 0 deletions tracking/migrations/0006_auto_20161228_1022.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-12-28 16:22
from __future__ import unicode_literals

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('tracking', '0005_rate_primary_income'),
]

operations = [
migrations.RemoveField(
model_name='rate',
name='primary_income',
),
migrations.RemoveField(
model_name='rate',
name='recurrences',
),
migrations.RemoveField(
model_name='rate',
name='transient',
),
]
18 changes: 0 additions & 18 deletions tracking/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,24 +39,6 @@ class Rate(models.Model):
max_digits=8, decimal_places=3, editable=False, blank=True)

active = models.BooleanField(default=True)
transient = models.BooleanField(
default=False,
help_text=(
'This option is for rates that simply reallocate money within your budget. '
'If the rate reflects money physically leaving your account, leave this unchecked.'
)
)

primary_income = UniqueBooleanField(
default=False,
help_text=(
'Check this if for the rate that is your primary income. '
'This is only used in the paycheck explorer report. '
'Only one is allowed.'
)
)

recurrences = RecurrenceField(null=True, blank=True)

def rount_amount_per_day(self, place='0.01'):
return Decimal(self.amount_per_day).quantize(Decimal(place))
Expand Down

0 comments on commit b34198d

Please sign in to comment.