Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f2d34c8e
authored
Feb 01, 2021
by
Máhonfai Bálint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add instance limit and template instance limit to group profile
parent
9413d8af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
circle/dashboard/migrations/0009_auto_20210201_1730.py
+25
-0
circle/dashboard/models.py
+2
-0
No files found.
circle/dashboard/migrations/0009_auto_20210201_1730.py
0 → 100644
View file @
f2d34c8e
# -*- coding: utf-8 -*-
# Generated by Django 1.11.25 on 2021-02-01 17:30
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'dashboard'
,
'0008_profile_template_instance_limit'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'groupprofile'
,
name
=
'instance_limit'
,
field
=
models
.
IntegerField
(
default
=
5
),
),
migrations
.
AddField
(
model_name
=
'groupprofile'
,
name
=
'template_instance_limit'
,
field
=
models
.
IntegerField
(
default
=
1
),
),
]
circle/dashboard/models.py
View file @
f2d34c8e
...
@@ -293,6 +293,8 @@ class GroupProfile(AclBase):
...
@@ -293,6 +293,8 @@ class GroupProfile(AclBase):
org_id
=
CharField
(
org_id
=
CharField
(
unique
=
True
,
blank
=
True
,
null
=
True
,
max_length
=
64
,
unique
=
True
,
blank
=
True
,
null
=
True
,
max_length
=
64
,
help_text
=
_
(
'Unique identifier of the group at the organization.'
))
help_text
=
_
(
'Unique identifier of the group at the organization.'
))
instance_limit
=
IntegerField
(
default
=
5
)
template_instance_limit
=
IntegerField
(
default
=
1
)
description
=
TextField
(
blank
=
True
)
description
=
TextField
(
blank
=
True
)
disk_quota
=
FileSizeField
(
disk_quota
=
FileSizeField
(
verbose_name
=
_
(
'disk quota'
),
verbose_name
=
_
(
'disk quota'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment