Commit c32affe6 authored by Damien Lespiau's avatar Damien Lespiau
Browse files

project: Add a description field



We'd like a add a small blurb to describe projects on the 'All Projects'
page.
Signed-off-by: default avatarDamien Lespiau <damien.lespiau@intel.com>
parent 647103da
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('patchwork', '0011_test_results_updated_ts_fix'),
]
operations = [
migrations.AddField(
model_name='project',
name='description',
field=models.TextField(null=True, blank=True),
),
]
......@@ -73,6 +73,7 @@ def get_comma_separated_field(value):
class Project(models.Model):
linkname = models.CharField(max_length=255, unique=True)
name = models.CharField(max_length=255, unique=True)
description = models.TextField(blank=True, null=True)
listid = models.CharField(max_length=255)
listemail = models.CharField(max_length=200)
web_url = models.CharField(max_length=2000, blank=True)
......
......@@ -17,6 +17,9 @@
<span>|</span>
<span><a href="{% url 'patches_list' project_id=p.linkname %}">View patches</a></span>
</p>
{% if p.description %}
<p>{{p.description}}</p>
{% endif %}
{% if p.web_url %}
<p><a href="{{p.web_url}}">{{p.web_url}}</a></p>
{% else %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment