Cédric Krier
9ea41ef4c8
Wrong class in super call
...
Introduced in changeset 5075df5e9872
issue8084
2019-02-13 12:30:05 +01:00
Cédric Krier
98bb26a386
Move field definition from Model to Field
...
issue8037
review74441002
2019-02-13 10:37:40 +01:00
Cédric Krier
951dbdfa82
Make DateTime field inherit from Timestamp field
...
The DateTime is a particular case of Timestamp.
This allows to share the sql_cast of DateTime with Timestamp.
issue8084
review64561002
2019-02-13 10:17:27 +01:00
Cédric Krier
c3d2be19f5
Add support of timestamp field on client
...
issue6463
review50521002
2018-08-01 11:37:09 +02:00
Cédric Krier
d2a461390a
Remove support for Python 2.7
...
issue7497
review53261002
2018-06-26 19:11:19 +02:00
Cédric Krier
00e4a51a41
Add sql_cast on Field
...
issue7266
review37141002
2018-04-30 14:59:01 +02:00
Cédric Krier
478c4e6928
Refactor fields tests
...
issue7085
review40051002
2018-02-02 00:04:19 +01:00
Nicolas Évrard
5cee718423
Move low level handling of the SQL type to the backend
...
This changeset defines on the field the (somehow) abstract SQL type a field
should use letting the duty of specifying the real SQL type the database
supports and the conversion to/from the python types to the backend.
issue6351
review33951002
2017-03-31 12:44:22 +02:00
Cédric Krier
0235d02ae7
Fix TimeDelta for MySQL
...
MySQL doesn't have a INTERVAL type so it must fallback to storing the total
seconds as DOUBLE.
issue4026
review8951002
2015-02-19 13:45:57 +01:00
Cédric Krier
0991a552de
Add TimeDelta field
...
And remove float_time widget.
issue4026
review5911002
2015-02-09 22:58:56 +01:00
Cédric Krier
c144f8c349
Fix most flake8 errors
...
review8771002
2014-12-02 12:54:01 +01:00
Cédric Krier
e0b995abbe
Refactore configuration to allow easy extention
...
issue3627
review7401002
2014-09-03 23:32:01 +02:00
Cédric Krier
fc6c6cfdda
Migration to python-sql
...
* Use python-sql
* Add convert_domain method on Fields
* Add sql_format and sql_type methods on Fields
* Allow to return a full domain for Function.searcher
* Replace static backend by dynamic get method
* Replace order_field by order_<field name> method
review1001002
2013-09-06 22:32:37 +02:00
Cédric Krier
3ebda5c8ee
Add time format validation
...
review342002
2012-05-16 13:04:36 +02:00
Gour
486d46a405
fix typos for documentation (Model chapter)
2009-09-13 15:37:11 +02:00
Cédric Krier
65d0a9494b
Update model documentation.
...
Use autodoc in sphinx
Add missing and fix docstring
2009-03-01 13:37:31 +01:00
Cédric Krier
e28edc4d99
Add model.fields
...
Use better naming of field attributes
2009-02-03 18:58:25 +01:00