Skip to content

Commit

Permalink
Merge ec8df7b into edde07a
Browse files Browse the repository at this point in the history
  • Loading branch information
riaJha97 committed Aug 28, 2018
2 parents edde07a + ec8df7b commit 24791ef
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions aimmo/migrations/0008_default_public_field.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2018-08-28 10:15
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('aimmo', '0007_auto_20180515_1300'),
]

operations = [
migrations.AlterField(
model_name='game',
name='public',
field=models.BooleanField(default=False),
),
]
2 changes: 1 addition & 1 deletion aimmo/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Game(models.Model):
name = models.CharField(max_length=100)
auth_token = models.CharField(max_length=24, default=generate_auth_token)
owner = models.ForeignKey(User, blank=True, null=True, related_name='owned_games')
public = models.BooleanField(default=True)
public = models.BooleanField(default=False)
can_play = models.ManyToManyField(User, related_name='playable_games')
completed = models.BooleanField(default=False)
main_user = models.ForeignKey(User, blank=True, null=True, related_name='games_for_user')
Expand Down
2 changes: 1 addition & 1 deletion aimmo/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def setUpTestData(cls):
cls.user = User.objects.create_user('test', 'test@example.com', 'password')
cls.user.is_staff = True
cls.user.save()
cls.game = models.Game(id=1, name='test')
cls.game = models.Game(id=1, name='test', public=True)
cls.game.save()

def setUp(self):
Expand Down

0 comments on commit 24791ef

Please sign in to comment.