mirror of
https://github.com/makeplane/plane.git
synced 2025-12-24 23:59:40 +01:00
Merge branch 'migration-webhook' of github.com:makeplane/plane into migration-webhook
This commit is contained in:
@@ -42,6 +42,11 @@ class Migration(migrations.Migration):
|
||||
model_name='workspaceuserproperties',
|
||||
name='product_tour',
|
||||
field=models.JSONField(default=plane.db.models.workspace.get_default_product_tour),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='apitoken',
|
||||
name='allowed_rate_limit',
|
||||
field=models.CharField(default='60/min', max_length=255),
|
||||
),
|
||||
migrations.RunPython(populate_product_tour, reverse_code=migrations.RunPython.noop),
|
||||
]
|
||||
|
||||
@@ -32,6 +32,7 @@ class APIToken(BaseModel):
|
||||
workspace = models.ForeignKey("db.Workspace", related_name="api_tokens", on_delete=models.CASCADE, null=True)
|
||||
expired_at = models.DateTimeField(blank=True, null=True)
|
||||
is_service = models.BooleanField(default=False)
|
||||
allowed_rate_limit = models.CharField(max_length=255, default="60/min")
|
||||
|
||||
class Meta:
|
||||
verbose_name = "API Token"
|
||||
|
||||
Reference in New Issue
Block a user