Commit graph

11 commits

Author SHA1 Message Date
Cristopher Hernandez
f5026f6e07 Add handling for RelatedField pk types 2022-01-07 19:20:03 -08:00
Cristopher Hernandez
4277f7333c Fix database casting issue 2021-10-25 18:29:01 -07:00
Henrik Hørlück Berg
24c69ff57c
Change deprecated force_text -> force_str 2020-03-29 12:17:35 +02:00
Ivan Elfimov
37298a8cdd Add django 3 support 2020-01-31 16:17:54 +03:00
Dave Hall
ba4a6af277 Adding support for Django 2.0 BigAutoField. Closes #238. 2018-02-20 11:01:46 +00:00
Andrew Cassidy
927d762daf Update foreign key references for django 2.0. This change was made in Django core 3 years ago. 2018-02-12 11:20:47 +00:00
Dave Hall
d6084f7a90 Fixing filter() with a UUID field. Closes #227. 2017-12-06 16:51:57 +00:00
Daniel Quinn
fcfe6eae6d Support stringifying objects in both Python 2 & 3
Without this fix, a Python3-based admin will simply show `Search object`
instead of `self.title`.
2017-11-23 14:06:52 +00:00
Antoine Lorence
967a049985 Fix coding style issue
This should remove PEP8 issues introduced with last commit and reported by Flake8
2017-07-22 13:43:29 +02:00
Antoine Lorence
f5e173e1a2 Set on_delete=CASCADE for ForeignKey model fields
This is the default behavior, but since on_delete argument will be required in Django 2.0, and a warning is thrown in recent versions of Django when the attribute is missing, it's better to set it in code. In addition, "explicit is better than implicit"
2017-07-22 12:46:36 +02:00
Rustem Sayargaliev
fb1a3991f1 Added flake8, fixed syntax, flattened package structure 2016-11-07 21:33:33 +01:00
Renamed from src/watson/models.py (Browse further)