Skip to content

Commit 23f1c69

Browse files
committed
Add descriptive texts for community auth version when configuring
1 parent 8333f98 commit 23f1c69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pgweb/account/migrations/0010_communityauthsite_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ class Migration(migrations.Migration):
1313
migrations.AddField(
1414
model_name='communityauthsite',
1515
name='version',
16-
field=models.IntegerField(choices=[(2, 2), (3, 3), (4, 4)], default=2),
16+
field=models.IntegerField(choices=[(2, "v2 - DEPRECATED"), (3, "v3 - recommended"), (4, "v4 - ChaCha20_Poly1305 compatibility")], default=2),
1717
),
1818
]

pgweb/account/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class CommunityAuthSite(models.Model):
1818
apiurl = models.URLField(max_length=200, null=False, blank=True)
1919
cryptkey = models.CharField(max_length=100, null=False, blank=False,
2020
help_text="Use tools/communityauth/generate_cryptkey.py to create a key")
21-
version = models.IntegerField(choices=((2, 2), (3, 3), (4, 4)), default=2)
21+
version = models.IntegerField(choices=((2, "v2 - DEPRECATED"), (3, "v3 - recommended"), (4, "v4 - ChaCha20_Poly1305 compatibility")), default=2)
2222
comment = models.TextField(null=False, blank=True)
2323
org = models.ForeignKey(CommunityAuthOrg, null=False, blank=False, on_delete=models.CASCADE)
2424
cooloff_hours = models.PositiveIntegerField(null=False, blank=False, default=0,

0 commit comments

Comments
 (0)