Commit 60c601b
committed
updating Recurrence class to be py3 compatible
in python 3 the __str__ method is called when converting a class to a
string (opposed to the __unicode__ method in py2). This change renames
the __unicode__ method to __str__, so we can easily get the serialized
version of a Recurrence object and while doing so maintain py2
compatibility be wrapping the class with Djangos
python_2_unicode_compatible decorator
for more info see https://docs.djangoproject.com/en/1.11/topics/python3/#str-and-unicode-methods1 parent efb0b97 commit 60c601b
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
243 | 244 | | |
244 | 245 | | |
245 | 246 | | |
| 247 | + | |
246 | 248 | | |
247 | 249 | | |
248 | 250 | | |
| |||
319 | 321 | | |
320 | 322 | | |
321 | 323 | | |
322 | | - | |
| 324 | + | |
323 | 325 | | |
324 | 326 | | |
325 | 327 | | |
| |||
0 commit comments