Skip to content
Snippets Groups Projects
Commit ef9b0ffc authored by Todd Dembrey's avatar Todd Dembrey
Browse files

remove categories which has been replaces by taxonomies in utils

parent 090bf82c
No related branches found
No related tags found
No related merge requests found
# -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-10-31 10:47
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=128)),
],
options={
'verbose_name_plural': 'categories',
'verbose_name': 'category',
},
),
]
from django.db import models
from wagtail.wagtailsnippets.models import register_snippet
from wagtail.wagtailadmin.edit_handlers import FieldPanel
@register_snippet
class Category(models.Model):
name = models.CharField(max_length=128)
panels = [
FieldPanel('name', classname="full"),
]
class Meta:
verbose_name = 'category'
verbose_name_plural = 'categories'
def __str__(self):
return self.name
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment