summaryrefslogtreecommitdiffstats
path: root/frest/templates/form.txt
diff options
context:
space:
mode:
authorSanto Cariotti <dcariotti24@gmail.com>2020-04-06 19:54:53 +0000
committerSanto Cariotti <dcariotti24@gmail.com>2020-04-06 19:54:53 +0000
commit3a2246e26e9febe3c15e2ddc1e7e6f320f86fe15 (patch)
tree9cbd95771d38dfd66bedb4a447470391d34a68eb /frest/templates/form.txt
parent6188a952974b3e268936beb1027ea58fbfaa67aa (diff)
chore: move package in frest folder
Diffstat (limited to 'frest/templates/form.txt')
-rw-r--r--frest/templates/form.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/frest/templates/form.txt b/frest/templates/form.txt
new file mode 100644
index 0000000..ed1017e
--- /dev/null
+++ b/frest/templates/form.txt
@@ -0,0 +1,11 @@
+from .models import %%NAME%%
+from src.forms import ModelForm
+
+
+class %%NAME%%Form(ModelForm):
+ model = %%NAME%%
+
+ def __init__(self, data):
+ super().__init__(self.model)
+ self.data = data
+ self.ignore = []