diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/income/admin.py | 2 | ||||
-rw-r--r-- | app/income/models.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/income/admin.py b/app/income/admin.py index c4e858a..df93011 100644 --- a/app/income/admin.py +++ b/app/income/admin.py @@ -1,7 +1,6 @@ import datetime from django.contrib import admin from django.db.models import Sum -from django.contrib.admin import helpers from django.contrib.gis.admin import OSMGeoAdmin from django.conf.urls import patterns from django.conf.urls import url @@ -19,6 +18,7 @@ class GigAdmin(OSMGeoAdmin): 'fields': ( 'title', 'pitch', + 'created', ('payment', 'pay_type', 'payment_status', 'invoice_date'), ('status', 'pub_date', 'word_count'), 'publisher', diff --git a/app/income/models.py b/app/income/models.py index a46f2d1..8304195 100644 --- a/app/income/models.py +++ b/app/income/models.py @@ -8,7 +8,7 @@ from resume.models import PubItem, Publisher class Gig(models.Model): title = models.CharField(max_length=200) pitch = models.TextField(null=True, blank=True) - created = models.DateTimeField(auto_now_add=True) + created = models.DateTimeField(default=timezone.now) pub_date = models.DateTimeField(default=timezone.now) STATUS = ( (0, "Pitched"), |