diff options
-rw-r--r-- | app/income/models.py | 4 | ||||
-rw-r--r-- | design/templates/archives/resume-pubs.html | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/app/income/models.py b/app/income/models.py index 9be597d..dbb03bf 100644 --- a/app/income/models.py +++ b/app/income/models.py @@ -9,8 +9,8 @@ class Gig(models.Model): title = models.CharField(max_length=200) pitch = models.TextField(null=True, blank=True) created = models.DateTimeField(default=timezone.now) - pub_date = models.DateTimeField(default=timezone.now) - due_date = models.DateField(default=timezone.now) + pub_date = models.DateTimeField(blank=True, null=True) + due_date = models.DateField(blank=True, null=True) STATUS = ( (0, "Pitched"), (1, "Accepted"), diff --git a/design/templates/archives/resume-pubs.html b/design/templates/archives/resume-pubs.html index b2d071f..1176d12 100644 --- a/design/templates/archives/resume-pubs.html +++ b/design/templates/archives/resume-pubs.html @@ -18,16 +18,16 @@ <nav class="toc"><ul>{% for publisher in pub_list %} <li><a href="#{{publisher.name|slugify}}">{{publisher.name}}</a></li>{%endfor%} </ul></nav> - <ul class="publications-list">{% regroup object_list|dictsort:"publisher_id" by publisher.name as pub_list %}{% for pub in pub_list %}{%if forloop.counter < 15 %} - <li> + <ul class="publications-list">{% regroup object_list|dictsort:"publisher_id" by publisher.name as pub_list %}{% for pub in pub_list %} + <li> <h2 id="{{pub.grouper|slugify}}">{{ pub.grouper }}</h2> - <ul>{% for object in pub.list %} + <ul>{% for object in pub.list %}{% if forloop.counter < 8 %} <li class="pub-title"><h3><a href="{{object.url}}">{{object.title|amp|smartypants|widont|safe}}</a></h3> <time class="dt-published published dt-updated" datetime="{{object.pub_date|date:'c'}}" itemprop="datePublished">{{object.pub_date|date:"F"}} <span>{{object.pub_date|date:"j, Y"}}</span></time> - </li>{% endfor %} + </li>{%endif%}{% endfor %} </ul> <a href="{% url "resume:live_publisher_redirect" pub.grouper|slugify %}">View all articles published by {{pub.grouper}}</a> - </li>{% endif %}{% endfor %} + </li>{% endfor %} </ul> </main> {% endblock %} |