summaryrefslogtreecommitdiff
path: root/app/income
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2015-11-20 14:27:50 +0000
committerluxagraf <sng@luxagraf.net>2015-11-20 14:27:50 +0000
commitb04f88912b4474b4078797913af5d2e324ab97e2 (patch)
treebcc0aeeac57e1d76de35e647ef68d164c7ae1b24 /app/income
parent625c485c2f21d1b01ece1e982ad0dc8a211a7303 (diff)
added word count to gigs
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)