From 71d112bdcfab675e9302cb66a174ce8d40626abc Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 20 May 2021 19:09:51 +0200 Subject: [PATCH] sources/plex: remove default for plex_token Signed-off-by: Jens Langhammer --- .../0003_alter_plexsource_plex_token.py | 18 ++++++++++++++++++ authentik/sources/plex/models.py | 4 +--- 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 authentik/sources/plex/migrations/0003_alter_plexsource_plex_token.py diff --git a/authentik/sources/plex/migrations/0003_alter_plexsource_plex_token.py b/authentik/sources/plex/migrations/0003_alter_plexsource_plex_token.py new file mode 100644 index 000000000..f3a9e6a0b --- /dev/null +++ b/authentik/sources/plex/migrations/0003_alter_plexsource_plex_token.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.3 on 2021-05-20 17:04 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("authentik_sources_plex", "0002_auto_20210505_1717"), + ] + + operations = [ + migrations.AlterField( + model_name="plexsource", + name="plex_token", + field=models.TextField(help_text="Plex token used to check firends"), + ), + ] diff --git a/authentik/sources/plex/models.py b/authentik/sources/plex/models.py index ed87502a9..9953cd290 100644 --- a/authentik/sources/plex/models.py +++ b/authentik/sources/plex/models.py @@ -41,9 +41,7 @@ class PlexSource(Source): default=True, help_text=_("Allow friends to authenticate, even if you don't share a server."), ) - plex_token = models.TextField( - default="", help_text=_("Plex token used to check firends") - ) + plex_token = models.TextField(help_text=_("Plex token used to check firends")) @property def component(self) -> str: