Browse Source

feature: reset data

master
Lucas 2 weeks ago
parent
commit
272feb3746
  1. 8
      lua/django/mappings.lua
  2. 4
      lua/django/utils.lua

8
lua/django/mappings.lua

@ -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()

4
lua/django/utils.lua

@ -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

Loading…
Cancel
Save