From 5b2ad72c71f2b3b068d6d589b94aa5c365d1075e Mon Sep 17 00:00:00 2001 From: fbormann Date: Thu, 8 Sep 2016 12:49:24 -0300 Subject: [PATCH] added actor field #41 --- core/models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/models.py b/core/models.py index 52ab7a0..b6bb996 100644 --- a/core/models.py +++ b/core/models.py @@ -26,11 +26,12 @@ class Resource(models.Model): Example: Pool was answered (Resource: Pool), PDF was visualized(Resource: PDF). Attributes: - @name: name of the resource affected + @name: name of the resource affected, it will be unique because a resource can be affecte + by a huge amount of actions @created_date: The date the resource was created """ - name = models.CharField(_('Name'), max_length =100) + name = models.CharField(_('Name'), max_length =100, unique=True) created_date = models.DateField(_('Created Date'), auto_now_add=True) class Meta: -- libgit2 0.21.2