from django.db import models
from .instance import Instance


class Note(models.Model):
    note = models.TextField()
    instance = models.ForeignKey(Instance, related_name='notes')
    date_created = models.DateTimeField(auto_now_add=True)
    date_modified = models.DateTimeField(auto_now=True)

    class Meta:
        app_label = 'odk_logger'

@@ -341,8 +341,82 @@
 logger'%0A
+        permissions = (%0A            ('view_note', 'View note'),%0A        )%0A

add view_note permission