Skip to content

Commit

Permalink
Default privacy to more private
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikhorluck committed Mar 16, 2024
1 parent c7696ae commit 7feb59e
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 5 deletions.
39 changes: 39 additions & 0 deletions apps/profiles/migrations/0010_auto_20240317_0014.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Generated by Django 3.2.24 on 2024-03-16 23:14

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("profiles", "0009_auto_20201106_1816"),
]

operations = [
migrations.AlterField(
model_name="privacy",
name="expose_address",
field=models.BooleanField(default=False, verbose_name="vis addresse"),
),
migrations.AlterField(
model_name="privacy",
name="expose_email",
field=models.BooleanField(default=False, verbose_name="vis epost"),
),
migrations.AlterField(
model_name="privacy",
name="expose_nickname",
field=models.BooleanField(default=False, verbose_name="vis kallenavn"),
),
migrations.AlterField(
model_name="privacy",
name="expose_phone_number",
field=models.BooleanField(default=False, verbose_name="vis telefonnummer"),
),
migrations.AlterField(
model_name="privacy",
name="visible_for_other_users",
field=models.BooleanField(
default=False, verbose_name="profil synlig for andre brukere"
),
),
]
10 changes: 5 additions & 5 deletions apps/profiles/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@

class Privacy(models.Model):
visible_for_other_users = models.BooleanField(
_("profil synlig for andre brukere"), default=True
_("profil synlig for andre brukere"), default=False
)
expose_nickname = models.BooleanField(_("vis kallenavn"), default=True)
expose_email = models.BooleanField(_("vis epost"), default=True)
expose_phone_number = models.BooleanField(_("vis telefonnummer"), default=True)
expose_address = models.BooleanField(_("vis addresse"), default=True)
expose_nickname = models.BooleanField(_("vis kallenavn"), default=False)
expose_email = models.BooleanField(_("vis epost"), default=False)
expose_phone_number = models.BooleanField(_("vis telefonnummer"), default=False)
expose_address = models.BooleanField(_("vis addresse"), default=False)
visible_as_attending_events = models.BooleanField(
_("vis på påmeldingsarrangement"), default=None, null=True
)
Expand Down

0 comments on commit 7feb59e

Please sign in to comment.