Skip to content

Commit

Permalink
feat(api): updating data_model/models.py, key was removed (#596)
Browse files Browse the repository at this point in the history
* feat(api): updating data_model/models.py, key was removed

* feat(api): update admin for data_model
  • Loading branch information
nutrina authored May 16, 2024
1 parent 912401d commit 2c4a44d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions api/data_model/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@
@admin.register(Cache)
class CacheAdmin(ScorerModelAdmin):
list_display = [
"key",
"key_0",
"key_1",
"value",
"updated_at",
]

list_filter = []

search_fields = [
"key",
"key_0",
"key_1",
"value",
]
search_help_text = "Search by: " + ", ".join(search_fields)
1 change: 0 additions & 1 deletion api/data_model/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@


class Cache(models.Model):
key = models.JSONField(blank=True, null=True)
value = models.JSONField()
updated_at = models.DateTimeField()
id = models.BigAutoField(primary_key=True)
Expand Down

0 comments on commit 2c4a44d

Please sign in to comment.