Commit eed14a6e authored by Rafal's avatar Rafal

add model, serializer

parent 2d411431
from django.db import models
# Create your models here.
class Beacon(models.Model):
uuid = models.CharField(max_length=300, unique=True)
name = models.CharField(max_length=300)
project = models.OneToOneField(Project)
description = models.CharField(max_length=300, null=True)
class Project(models.Model):
link_url = models.CharField(max_length=2000)
description = models.CharField(max_length=300, null=True)
\ No newline at end of file
__author__ = 'Rafal'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment