feature: reset data

This commit is contained in:
Lucas F. 2025-01-05 12:23:22 -03:00
parent ad601a3202
commit 272feb3746
2 changed files with 10 additions and 2 deletions

View file

@ -21,8 +21,12 @@ local mappings = {
end,
desc = "load data",
},
["<leader>jt"] = {
function()
django.reset_data()
end,
desc = "reset data",
},
["<leader>jp"] = {
function()
django.create_package()

View file

@ -313,5 +313,9 @@ function M.load_data()
perform_load_data)
end
function M.reset_data()
local term_num =15
toggleterm.exec("./manage.py resetdata", term_num, 100, ".", "float", "reset_data", false)
end
return M