Re: custom model fields with to_python()/from_db_value() for different django version...

2015-06-17 Thread Simon Charette
Hi Jens, I haven't tested your alternative but it looks like it would work. I prefer the explicit check against django.VERSION since it makes it easy to search for dead code branch when dropping support a version of Django. Simon Le mercredi 17 juin 2015 10:59:27 UTC-4, Jens Diemer a écrit : >

custom model fields with to_python()/from_db_value() for different django version...

2015-06-17 Thread Jens Diemer
("Moved" from django-developers list) Am 17.06.2015 um 16:48 schrieb charettes:> Hi Jens, > > I'm not sure I understand what you are trying to achieve but I assume you want > to write a third-party field that supports both Django 1.7 and 1.8 without > raising deprecating warnings? > > I suggest y