Call "open" "private" instead.

This commit is contained in:
Víðir Valberg Guðmundsson 2016-07-05 23:55:05 +02:00
parent 94e6ccc101
commit fdd6433af5
2 changed files with 27 additions and 3 deletions

View file

@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-07-05 21:54
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('villages', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='village',
name='open',
),
migrations.AddField(
model_name='village',
name='private',
field=models.BooleanField(default=True, help_text='Check if your village is privately organized'),
),
]

View file

@ -20,9 +20,9 @@ class Village(CreatedUpdatedModel, UUIDModel):
slug = models.SlugField(max_length=255, blank=True) slug = models.SlugField(max_length=255, blank=True)
description = models.TextField() description = models.TextField()
open = models.BooleanField( private = models.BooleanField(
default=False, default=True,
help_text='Is this village open for others to join?' help_text='Check if your village is privately organized'
) )
def __str__(self): def __str__(self):