Debian Codegraph @

example/characters/models.py

raw
1 from django.db.models import JSONField
2 from django.db import models
3
4
5 class Character(models.Model):
6 name = models.CharField(max_length=200)
7 data = JSONField()
8 other_data = JSONField()
9
10 def __str__(self): # __unicode__ on Python 2
11 return self.name