Commit 70a5f9bf authored by Robert's avatar Robert
Browse files

Add need pattern reference to need and in admin

parent 128d69da
from django.contrib import admin
# Register your models here.
from commoning.models import Need
admin.site.register(Need)
# Generated by Django 2.2.13 on 2020-06-14 15:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('commoning', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='need',
name='need_pattern_url',
field=models.URLField(blank=True),
),
migrations.AlterField(
model_name='need',
name='title',
field=models.CharField(max_length=200),
),
]
......@@ -2,6 +2,10 @@ from django.db import models
class Need(models.Model):
title = models.CharField(max_length=255)
title = models.CharField(max_length=200)
description = models.TextField()
creation_time = models.DateTimeField(auto_now_add=True)
need_pattern_url = models.URLField(blank=True)
def __str__(self):
return self.title
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