Skip to content

Commit

Permalink
Change default public value of projects to be (ALLOW_PUBLIC_PROJECTS …
Browse files Browse the repository at this point in the history
…and PUBLIC) (refs GH-634)
  • Loading branch information
dcramer committed Dec 2, 2012
1 parent bfe2905 commit 8101dfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sentry/models.py
Expand Up @@ -116,7 +116,7 @@ class Project(Model):
name = models.CharField(max_length=200)
owner = models.ForeignKey(User, related_name="sentry_owned_project_set", null=True)
team = models.ForeignKey(Team, null=True)
public = models.BooleanField(default=settings.ALLOW_PUBLIC_PROJECTS)
public = models.BooleanField(default=settings.ALLOW_PUBLIC_PROJECTS and settings.PUBLIC)
date_added = models.DateTimeField(default=timezone.now)
status = models.PositiveIntegerField(default=0, choices=(
(0, 'Visible'),
Expand Down Expand Up @@ -767,7 +767,7 @@ def create_default_project(created_models, verbosity=2, **kwargs):
return

project = Project.objects.create(
public=settings.ALLOW_PUBLIC_PROJECTS,
public=settings.ALLOW_PUBLIC_PROJECTS and settings.PUBLIC,
name='Sentry (Internal)',
slug='sentry',
)
Expand Down

0 comments on commit 8101dfc

Please sign in to comment.