De-slugify

This commit is contained in:
Matthew Ryan Dillon 2016-06-15 15:52:18 -07:00
parent 65bc5c16d4
commit 19d97cc79c
16 changed files with 0 additions and 70 deletions
ccdb/projects

View file

@ -1,5 +1,4 @@
from django.db import migrations, models
import autoslug.fields
class Migration(migrations.Migration):
@ -16,7 +15,6 @@ class Migration(migrations.Migration):
('iacuc_number', models.CharField(blank=True, max_length=25)),
('description', models.CharField(blank=True, max_length=255)),
('sort_order', models.IntegerField(blank=True, null=True)),
('slug', autoslug.fields.AutoSlugField(populate_from='name', editable=False)),
],
options={
'ordering': ['sort_order'],

View file

@ -1,7 +1,5 @@
from django.db import models
from autoslug import AutoSlugField
class Project(models.Model):
name = models.CharField(max_length=100)
@ -9,7 +7,6 @@ class Project(models.Model):
iacuc_number = models.CharField(max_length=25, blank=True)
description = models.CharField(max_length=255, blank=True)
sort_order = models.IntegerField(blank=True, null=True)
slug = AutoSlugField(populate_from='name')
def __str__(self):
return self.name