Commit 5b2ad72c71f2b3b068d6d589b94aa5c365d1075e

Authored by fbormann
1 parent 3eb587e5

added actor field #41

Showing 1 changed file with 3 additions and 2 deletions   Show diff stats
core/models.py
@@ -26,11 +26,12 @@ class Resource(models.Model): @@ -26,11 +26,12 @@ class Resource(models.Model):
26 Example: Pool was answered (Resource: Pool), PDF was visualized(Resource: PDF). 26 Example: Pool was answered (Resource: Pool), PDF was visualized(Resource: PDF).
27 27
28 Attributes: 28 Attributes:
29 - @name: name of the resource affected 29 + @name: name of the resource affected, it will be unique because a resource can be affecte
  30 + by a huge amount of actions
30 @created_date: The date the resource was created 31 @created_date: The date the resource was created
31 """ 32 """
32 33
33 - name = models.CharField(_('Name'), max_length =100) 34 + name = models.CharField(_('Name'), max_length =100, unique=True)
34 created_date = models.DateField(_('Created Date'), auto_now_add=True) 35 created_date = models.DateField(_('Created Date'), auto_now_add=True)
35 36
36 class Meta: 37 class Meta: