kopia lustrzana https://gitlab.com/marnanel/chapeau
17 wiersze
369 B
Python
17 wiersze
369 B
Python
from django.db import models
|
|
from django_kepi import register_type
|
|
|
|
class ThingUser(models.Model):
|
|
|
|
name = models.CharField(max_length=256)
|
|
#activity_object = models.OneToOneField(
|
|
# ActivityObject,
|
|
# on_delete=models.CASCADE,
|
|
# )
|
|
|
|
def serialize(self):
|
|
return {
|
|
'name': self.name,
|
|
}
|
|
|