[webdav] Add crednetials to user profile
This commit is contained in:
@ -0,0 +1,34 @@
|
|||||||
|
# Generated by Django 4.2.16 on 2024-10-20 20:04
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
import encrypted_field.fields
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
("profiles", "0018_userprofile_todoist_user_id"),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name="userprofile",
|
||||||
|
name="webdav_auto_import",
|
||||||
|
field=models.BooleanField(default=False),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name="userprofile",
|
||||||
|
name="webdav_pass",
|
||||||
|
field=encrypted_field.fields.EncryptedField(blank=True, null=True),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name="userprofile",
|
||||||
|
name="webdav_url",
|
||||||
|
field=models.CharField(blank=True, max_length=255, null=True),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name="userprofile",
|
||||||
|
name="webdav_user",
|
||||||
|
field=models.CharField(blank=True, max_length=255, null=True),
|
||||||
|
),
|
||||||
|
]
|
||||||
@ -35,6 +35,11 @@ class UserProfile(TimeStampedModel):
|
|||||||
todoist_state = EncryptedField(**BNULL)
|
todoist_state = EncryptedField(**BNULL)
|
||||||
todoist_user_id = models.CharField(max_length=100, **BNULL)
|
todoist_user_id = models.CharField(max_length=100, **BNULL)
|
||||||
|
|
||||||
|
webdav_url = models.CharField(max_length=255, **BNULL)
|
||||||
|
webdav_user = models.CharField(max_length=255, **BNULL)
|
||||||
|
webdav_pass = EncryptedField(**BNULL)
|
||||||
|
webdav_auto_import = models.BooleanField(default=False)
|
||||||
|
|
||||||
redirect_to_webpage = models.BooleanField(default=True)
|
redirect_to_webpage = models.BooleanField(default=True)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user