14
14
#### forms.py
15
15
16
16
``` python
17
+ # -*- coding: utf-8 -*-
17
18
from django import forms
18
- from widgets import SplitJSONWidget
19
+ from splitjson.widgets import SplitJSONWidget
20
+
19
21
20
22
class testForm (forms .Form ):
21
23
attrs = {' class' : ' special' , ' size' : ' 40' }
@@ -24,6 +26,7 @@ class testForm(forms.Form):
24
26
25
27
#### views.py
26
28
``` python
29
+ # -*- coding: utf-8 -*-
27
30
from django.shortcuts import render_to_response
28
31
from django.template import RequestContext
29
32
from forms import testForm
@@ -77,8 +80,10 @@ def test_dict(request):
77
80
78
81
#### forms.py
79
82
``` python
83
+ # -*- coding: utf-8 -*-
80
84
from django import forms
81
- from widgets import SplitJSONWidget
85
+ from splitjson.widgets import SplitJSONWidget
86
+
82
87
83
88
class testForm (forms .Form ):
84
89
attrs = {' class' : ' special' , ' size' : ' 40' }
@@ -87,6 +92,7 @@ class testForm(forms.Form):
87
92
88
93
#### views.py
89
94
``` python
95
+ # -*- coding: utf-8 -*-
90
96
from django.shortcuts import render_to_response
91
97
from django.template import RequestContext
92
98
from forms import testForm
@@ -148,8 +154,9 @@ def test_nested_dict(request):
148
154
149
155
#### forms.py
150
156
``` python
157
+ # -*- coding: utf-8 -*-
151
158
from django import forms
152
- from widgets import SplitJSONWidget
159
+ from splitjson. widgets import SplitJSONWidget
153
160
154
161
155
162
class testForm (forms .Form ):
@@ -159,6 +166,7 @@ class testForm(forms.Form):
159
166
160
167
#### views.py
161
168
``` python
169
+ # -*- coding: utf-8 -*-
162
170
from django.shortcuts import render_to_response
163
171
from django.template import RequestContext
164
172
from forms import testForm
@@ -209,9 +217,10 @@ def test_list(request):
209
217
210
218
#### forms.py
211
219
``` python
212
- # -*- coding: utf8 -*-
220
+ # -*- coding: utf-8 -*-
213
221
from django import forms
214
- from widgets import SplitJSONWidget
222
+ from splitjson.widgets import SplitJSONWidget
223
+
215
224
216
225
class testForm (forms .Form ):
217
226
attrs = {' class' : ' special' , ' size' : ' 40' }
@@ -220,6 +229,7 @@ class testForm(forms.Form):
220
229
221
230
#### views.py
222
231
``` python
232
+ # -*- coding: utf-8 -*-
223
233
from django.shortcuts import render_to_response
224
234
from django.template import RequestContext
225
235
from forms import testForm
0 commit comments