Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2843e26c
authored
Jul 23, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
profile: use SizeField for disk_quota
parent
271c1afb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
circle/dashboard/models.py
+4
-2
No files found.
circle/dashboard/models.py
View file @
2843e26c
...
...
@@ -34,6 +34,8 @@ from django.templatetags.static import static
from
django.utils.translation
import
ugettext_lazy
as
_
from
django_sshkey.models
import
UserKey
from
sizefield.models
import
FileSizeField
from
jsonfield
import
JSONField
from
model_utils.models
import
TimeStampedModel
from
model_utils.fields
import
StatusField
...
...
@@ -121,9 +123,9 @@ class Profile(Model):
'virtual machines.'
),
default
=
pwgen
,
)
disk_quota
=
Integer
Field
(
disk_quota
=
FileSize
Field
(
verbose_name
=
_
(
'disk quota'
),
default
=
2048
,
default
=
2048
*
1024
*
1024
,
help_text
=
_
(
'Disk quota in mebibytes.'
))
def
notify
(
self
,
subject
,
template
,
context
=
None
,
valid_until
=
None
,
...
...
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