Added SSOUserNote model

This commit is contained in:
2010-09-30 10:55:56 +01:00
parent 74ffff0a2b
commit fc98562efe
3 changed files with 117 additions and 1 deletions

View File

@@ -118,6 +118,17 @@ class SSOUser(models.Model):
signals.post_save.connect(SSOUser.create_user_profile, sender=User)
#signals.post_save.connect(SSOUser.update_service_groups, sender=User)
class SSOUserNote(models.Model):
""" Notes bound to a user's account. Used to store information regarding the user """
user = models.ForeignKey(User, "User", blank=False, null=False, related_name='notes')
note = models.TextField("Note", blank=False, null=False)
created_by = models.ForeignKey(User, "Created By", blank=False, null=False)
date_created = models.DateTimeField(auto_now_add=True, blank=False, null=False,
verbose_name="Date/Time the note was added",
help_text="Shows the date and time the note was added to the account")
class Service(models.Model):
"""
Service model represents a service available to users, either a website or