diff options
author | luxagraf <sng@luxagraf.net> | 2015-11-15 13:53:43 +0000 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2015-11-15 13:53:43 +0000 |
commit | b5525ab81fd7589e77eb83264d2d8db5c1ddd00a (patch) | |
tree | 0980261602412d2f5d3def90d869c42df3230df6 | |
parent | 9652ecd1d29e0a0ed02a8dc2778b7d0caa0ff921 (diff) |
added payment view to list in admin and another status possibility
-rw-r--r-- | app/income/admin.py | 2 | ||||
-rw-r--r-- | app/income/models.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/app/income/admin.py b/app/income/admin.py index 4ca6aba..7fb1ee0 100644 --- a/app/income/admin.py +++ b/app/income/admin.py @@ -4,7 +4,7 @@ from .models import Gig class GigAdmin(admin.ModelAdmin): - list_display = ('title', 'status', 'payment_status', 'publisher', 'pub_date', 'created') + list_display = ('title', 'status', 'payment', 'payment_status', 'publisher', 'pub_date', 'created') list_filter = ('publisher', 'status', 'payment_status') fieldsets = ( ('Gig', { diff --git a/app/income/models.py b/app/income/models.py index 9cace38..0d06967 100644 --- a/app/income/models.py +++ b/app/income/models.py @@ -12,8 +12,9 @@ class Gig(models.Model): STATUS = ( (0, "Pitched"), (1, "Accepted"), - (2, "Rejected"), + (2, "Submitted"), (3, "Published"), + (4, "Rejected"), ) status = models.IntegerField(choices=STATUS, default=1) payment = models.DecimalField(max_digits=10, decimal_places=2) |