summaryrefslogtreecommitdiff
path: root/app/income
diff options
context:
space:
mode:
Diffstat (limited to 'app/income')
-rw-r--r--app/income/admin.py6
-rw-r--r--app/income/models.py1
2 files changed, 4 insertions, 3 deletions
diff --git a/app/income/admin.py b/app/income/admin.py
index c47d7a2..d8430be 100644
--- a/app/income/admin.py
+++ b/app/income/admin.py
@@ -4,15 +4,15 @@ from .models import Gig
class GigAdmin(admin.ModelAdmin):
- list_display = ('title', 'status', 'payment_status', 'invoice_date', 'payment', 'publisher', 'pub_date', 'created')
+ list_display = ('title', 'status', 'payment_status', 'invoice_date', 'payment', 'publisher', 'pub_date', 'word_count')
list_filter = ('publisher', 'status', 'payment_status')
fieldsets = (
('Gig', {
'fields': (
'title',
'pitch',
- ('payment', 'pay_type'),
- ('status', 'pub_date', 'payment_status', 'invoice_date'),
+ ('payment', 'pay_type','payment_status', 'invoice_date'),
+ ('status', 'pub_date', 'word_count' ),
'publisher',
'pub_item'
),
diff --git a/app/income/models.py b/app/income/models.py
index 4fb5497..670b0a5 100644
--- a/app/income/models.py
+++ b/app/income/models.py
@@ -31,6 +31,7 @@ class Gig(models.Model):
(2, "Hourly"),
)
pay_type = models.IntegerField(choices=PAY_TYPE, default=1)
+ word_count = models.DecimalField(max_digits=7, decimal_places=0, blank=True, null=True)
publisher = models.ForeignKey(Publisher, blank=True, null=True)
pub_item = models.ForeignKey(PubItem, blank=True, null=True)