[schema][manual] Add schema invite_only flag for streams

(imported from commit 6234b67b3c72912bf40e39007bbc884d20774806)
This commit is contained in:
Leo Franchi
2013-01-23 14:36:32 -05:00
parent 767bf16c1c
commit 7d05450411
2 changed files with 162 additions and 0 deletions

View File

@@ -92,6 +92,7 @@ class MitUser(models.Model):
class Stream(models.Model):
name = models.CharField(max_length=30, db_index=True)
realm = models.ForeignKey(Realm, db_index=True)
invite_only = models.NullBooleanField(default=False)
def __repr__(self):
return "<Stream: %s>" % (self.name,)