Re: Contractions in Django 3.0 and Django 2.2

2020-02-09 Thread One Above All
I just replaced single quotes with that special character from response string using replace method of string, ‪On Sat, Feb 8, 2020 at 8:41 PM ‫אורי‬‎ wrote:‬ > For example in this case: > > if (django.VERSION >= (3, 0)): > ... > else: > ... > אורי > u...@speedy.net > > > On Sat, Feb 8,

Re: Contractions in Django 3.0 and Django 2.2

2020-02-08 Thread אורי
For example in this case: if (django.VERSION >= (3, 0)): ... else: ... אורי u...@speedy.net On Sat, Feb 8, 2020 at 3:48 PM One Above All < the.one.above.all.ti...@gmail.com> wrote: > i am working on a project which is adding support for Django 3.0. While > doing so, I came across

Re: Contractions in Django 3.0 and Django 2.2

2020-02-08 Thread אורי
You can check which Django version is used and assert accordingly. https://stackoverflow.com/a/6468505/1412564 אורי u...@speedy.net On Sat, Feb 8, 2020 at 3:48 PM One Above All < the.one.above.all.ti...@gmail.com> wrote: > i am working on a project which is adding support for Django 3.0. While

Contractions in Django 3.0 and Django 2.2

2020-02-08 Thread One Above All
i am working on a project which is adding support for Django 3.0. While doing so, I came across ticket # 30400 https://code.djangoproject.com/ticket/30400 after which contractions were rewritten. I am writing a test which should work with both Django 3.0 and 2.2. I have to assert