equal
deleted
inserted
replaced
176 elif command.has_key('html'): |
176 elif command.has_key('html'): |
177 return {'success': True, 'html': f.as_table()} |
177 return {'success': True, 'html': f.as_table()} |
178 |
178 |
179 return "unrecognised command" |
179 return "unrecognised command" |
180 |
180 |
181 |
|
182 |
|
183 |
|
184 # The following is incredibly convenient for saving vast amounts of |
181 # The following is incredibly convenient for saving vast amounts of |
185 # coding, avoiding doing silly things like this: |
182 # coding, avoiding doing silly things like this: |
186 # jsonresult = {'field1': djangoobject.field1, |
183 # jsonresult = {'field1': djangoobject.field1, |
187 # 'field2': djangoobject.date.strftime('%Y.%M'), |
184 # 'field2': djangoobject.date.strftime('%Y.%M'), |
188 # ..... } |
185 # ..... } |