Commit 2fc17d83 authored by Rafal's avatar Rafal

add user project

parent 1a59648b
......@@ -40,7 +40,7 @@ class BeaconManager(models.Model):
return str(self.beacon)
class UserProject(models.Model):
author = models.ForeignKey(User, unique=True)
author = models.ForeignKey(User)
beacons = models.ManyToManyField('Beacon')
name = models.CharField(max_length=300)
description = models.CharField(max_length=300, null=True)
......
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