summaryrefslogtreecommitdiffstats
path: root/src/frest/templates/form.txt
diff options
context:
space:
mode:
authorSanto Cariotti <dcariotti24@gmail.com>2020-03-20 11:15:21 +0000
committerSanto Cariotti <dcariotti24@gmail.com>2020-03-20 11:15:21 +0000
commitd880d90e6d6d0cade731ae43ab40934928c20ba4 (patch)
tree91a70553e4ddf248095b2b89e6bfdd98f05f82d4 /src/frest/templates/form.txt
parentce12b3c0916958819d3e5cec5c3609e204b28ad8 (diff)
chore: rename templates in txt
Diffstat (limited to 'src/frest/templates/form.txt')
-rw-r--r--src/frest/templates/form.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/frest/templates/form.txt b/src/frest/templates/form.txt
new file mode 100644
index 0000000..f4b2c14
--- /dev/null
+++ b/src/frest/templates/form.txt
@@ -0,0 +1,10 @@
+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