Ziafazal/users in workgroup

Add is_private field to workgroup model to support MCKIN-1414 and added new api to list workgroups of user with course_id filter to support MCKIN-1425.
@mattdrayer Please review.
Yes, I believe that is more helpful

On Jun 13, 2014, at 9:42 AM, Matt Drayer <notifications@github.com> wrote:

> In lms/djangoapps/projects/models.py:
> 
> > @@ -30,6 +30,7 @@ class Workgroup(TimeStampedModel):
> >      project = models.ForeignKey(Project, related_name="workgroups")
> >      users = models.ManyToManyField(User, related_name="workgroups", blank=True, null=True)
> >      groups = models.ManyToManyField(Group, related_name="workgroups", blank=True, null=True)
> > +    is_private = models.BooleanField(default=True)
> I missed your latter comment, @martynjames -- so you'd rather have a nullable ForeignKey reference to Organization on the Project model, and let the client decide what to do when there's a value in that field? So in the current use case it would interpret that value as being a 'private' project?
> 
> —
> Reply to this email directly or view it on GitHub.
>