Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fai-webapi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Libraries
fai-webapi
Commits
fd9960a5
Commit
fd9960a5
authored
3 years ago
by
Tom Teichler
Browse files
Options
Downloads
Patches
Plain Diff
Allow class_required to be empty
parent
6c221715
No related branches found
No related tags found
1 merge request
!2
Allow class_required to be empty
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fai_webapi_djrf/migrations/0004_alter_packageconfig_class_required.py
+18
-0
18 additions, 0 deletions
...jrf/migrations/0004_alter_packageconfig_class_required.py
fai_webapi_djrf/models.py
+1
-1
1 addition, 1 deletion
fai_webapi_djrf/models.py
with
19 additions
and
1 deletion
fai_webapi_djrf/migrations/0004_alter_packageconfig_class_required.py
0 → 100644
+
18
−
0
View file @
fd9960a5
# Generated by Django 3.2.13 on 2022-05-27 19:49
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'
fai_webapi_djrf
'
,
'
0003_scripts
'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'
packageconfig
'
,
name
=
'
class_required
'
,
field
=
models
.
ManyToManyField
(
blank
=
True
,
related_name
=
'
additional_for_package_configs
'
,
to
=
'
fai_webapi_djrf.Class
'
),
),
]
This diff is collapsed.
Click to expand it.
fai_webapi_djrf/models.py
+
1
−
1
View file @
fd9960a5
...
...
@@ -428,7 +428,7 @@ class PackageConfig(models.Model):
)
)
class_required
=
models
.
ManyToManyField
(
"
Class
"
,
related_name
=
"
additional_for_package_configs
"
"
Class
"
,
related_name
=
"
additional_for_package_configs
"
,
blank
=
True
)
def
__str__
(
self
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment