-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: paas-service plan 支持多租户 #211
base: master
Are you sure you want to change the base?
feat: paas-service plan 支持多租户 #211
Conversation
@@ -214,6 +215,8 @@ def render_instance_data(request: HttpRequest, instance: ServiceInstance) -> Dic | |||
|
|||
class Plan(UuidAuditedModel): | |||
name = models.CharField(verbose_name='方案名称', max_length=64) | |||
display_name = models.CharField("方案展示名称", max_length=64, default="") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
display_name 需要国际化
@@ -214,6 +215,8 @@ def render_instance_data(request: HttpRequest, instance: ServiceInstance) -> Dic | |||
|
|||
class Plan(UuidAuditedModel): | |||
name = models.CharField(verbose_name='方案名称', max_length=64) | |||
display_name = models.CharField("方案展示名称", max_length=64, default="") | |||
tenant_id = models.CharField(help_text="所属租户", max_length=128, default=DEFAULT_TENANT_ID) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以添加一个索引
db_index=True,
@@ -28,3 +28,5 @@ class Category(int, Enum): | |||
|
|||
# Login 服务的重定向链接字段名 | |||
REDIRECT_FIELD_NAME = "c_url" | |||
|
|||
DEFAULT_TENANT_ID = "default" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
增加说明
@@ -31,7 +31,7 @@ | |||
setup( | |||
long_description=readme, | |||
name='paas_service', | |||
version='2.0.0', | |||
version='2.0.2', | |||
python_requires='<3.12,>=3.8', | |||
author='blueking', | |||
author_email='[email protected]', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
更新相关的单测代码?
No description provided.