Skip to content

Commit

Permalink
fix: forgot to set the default for file creation back to False after …
Browse files Browse the repository at this point in the history
…debugging
  • Loading branch information
ormsbee committed Feb 6, 2024
1 parent 40f60a9 commit 9de189c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions openedx_learning/core/contents/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class ContentAdmin(ReadOnlyModelAdmin):
"media_type",
"size",
"created",
"has_file",
]
fields = [
"learning_package",
Expand All @@ -30,6 +31,7 @@ class ContentAdmin(ReadOnlyModelAdmin):
"created",
"file_link",
"text_preview",
"has_file",
]
list_filter = ("media_type", "learning_package")
search_fields = ("hash_digest",)
Expand Down
2 changes: 1 addition & 1 deletion openedx_learning/core/contents/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def get_or_create_text_content(
media_type_id: int,
text: str,
created: datetime,
create_file: bool=True,
create_file: bool=False,
) -> Content:
"""
Get or create a Content entry with text data stored in the database.
Expand Down

0 comments on commit 9de189c

Please sign in to comment.