7

Admin placeholders

This commit is contained in:
Jasper Berghoef
2016-11-07 13:20:08 +01:00
parent e6786943f7
commit 236044fcd0
5 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,22 @@
from __future__ import absolute_import, unicode_literals
from django.conf import settings
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from modelcluster.models import ClusterableModel
"""
Model for a new segment
"""
@python_2_unicode_compatible
class Segment(ClusterableModel):
name = models.CharField(max_length=255)
panels = [
FieldPanel('name'),
]
def __str__(self):
return self.name