You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
361 B
Python
17 lines
361 B
Python
2 years ago
|
from __future__ import unicode_literals
|
||
|
|
||
|
from django.utils.encoding import python_2_unicode_compatible
|
||
|
from django.db import models
|
||
|
|
||
|
@python_2_unicode_compatible
|
||
|
class Chunk(models.Model):
|
||
|
slug = models.SlugField()
|
||
|
content = models.TextField()
|
||
|
|
||
|
class Meta:
|
||
|
db_table = 'nano_chunk_chunk'
|
||
|
|
||
|
def __str__(self):
|
||
|
return self.slug
|
||
|
|