Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE3
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
5
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7c548bc4
authored
Feb 09, 2022
by
Karsa Zoltán István
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
req and fix FK models
parent
9b86fc5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
circle/acl/tests/test_acl.py
+2
-2
No files found.
circle/acl/tests/test_acl.py
View file @
7c548bc4
...
@@ -20,7 +20,7 @@ from django.contrib.auth.models import User, Group, AnonymousUser
...
@@ -20,7 +20,7 @@ from django.contrib.auth.models import User, Group, AnonymousUser
from
django.db.models
import
TextField
,
ForeignKey
from
django.db.models
import
TextField
,
ForeignKey
from
..models
import
ObjectLevel
,
AclBase
from
..models
import
ObjectLevel
,
AclBase
from
django.db
import
models
class
TestModel
(
AclBase
):
class
TestModel
(
AclBase
):
normal_field
=
TextField
()
normal_field
=
TextField
()
...
@@ -34,7 +34,7 @@ class TestModel(AclBase):
...
@@ -34,7 +34,7 @@ class TestModel(AclBase):
class
Test2Model
(
AclBase
):
class
Test2Model
(
AclBase
):
normal2_field
=
TextField
()
normal2_field
=
TextField
()
owner
=
ForeignKey
(
User
,
null
=
True
)
owner
=
ForeignKey
(
User
,
null
=
True
,
on_delete
=
models
.
CASCADE
)
ACL_LEVELS
=
(
ACL_LEVELS
=
(
(
'one'
,
'One'
),
(
'one'
,
'One'
),
...
...
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