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
# Quick-and-dirty fix for forms using ModelChoiceField with to_field_name set. | |
# See https://code.djangoproject.com/ticket/20202 for details. | |
# Example usage: | |
# >>> import form_fixes | |
# >>> form_fixes.fix_to_field_name() | |
from django import forms | |
from django.db import models |