13 lines
309 B
Python
13 lines
309 B
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
from django.db import models
|
|
from django.utils.encoding import python_2_unicode_compatible
|
|
|
|
|
|
@python_2_unicode_compatible
|
|
class MyModel(models.Model):
|
|
chars = models.CharField(max_length=10)
|
|
|
|
def __str__(self):
|
|
return self.chars
|