Commit 470428e8 authored by Tom van Bussel's avatar Tom van Bussel
Browse files

Made album slug unique

parent 3473cebe
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-05-03 18:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('photos', '0008_photo__digest'),
]
operations = [
migrations.AlterField(
model_name='album',
name='slug',
field=models.SlugField(unique=True, verbose_name='slug'),
),
]
......@@ -95,6 +95,7 @@ class Album(models.Model):
slug = models.SlugField(
verbose_name=_('slug'),
unique=True,
)
hidden = models.BooleanField(
......
Supports Markdown
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