This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Functions for converting dates to/from JD and MJD. Assumes dates are historical | |
dates, including the transition from the Julian calendar to the Gregorian | |
calendar in 1582. No support for proleptic Gregorian/Julian calendars. | |
:Author: Matt Davis | |
:Website: http://github.com/jiffyclub | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# USAGE: To apply to your project, call the appropriate APPLY_ method for your | |
# version of Django at the start of your project's `AppConfig.ready` method: | |
# - APPLY_hack_django_17_collector_collect | |
# - APPLY_hack_django_18_get_candidate_relations_to_delete | |
# | |
# See comment notes below for references to related Django issues. | |
# The underlying issue is fixed in Django 1.9+ | |
# | |
# This gist is intended to help others encountering this issue, and as a | |
# placeholder until a better work-around and/or a more easily installed |