Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1746 | fixing toggles fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Feb 5, 2024
1 parent d68c448 commit 0de6563
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/common/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,8 @@ def resolve_repo(cls, instance, version, is_canonical, resolution_url):
instance = instance.versions.filter(version=version).first()
elif instance.is_head:
instance = instance.get_latest_released_version() or instance
else:

if not instance:
instance = Source()

instance.is_fqdn = is_canonical
Expand Down
2 changes: 1 addition & 1 deletion core/fixtures/toggles.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
}
},
{
"pk": 4,
"pk": 5,
"model": "toggles.toggle",
"fields": {
"is_active": true,
Expand Down

0 comments on commit 0de6563

Please sign in to comment.