Created
April 29, 2013 13:49
-
-
Save kezabelle/5481668 to your computer and use it in GitHub Desktop.
Oh god why :(
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
app/docs/forms.rst:4: WARNING: autodoc: failed to import module u'app.forms'; the following exception was raised: | |
Traceback (most recent call last): | |
File "path/to/sphinx/ext/autodoc.py", line 326, in import_object | |
__import__(self.modname) | |
File "app/forms.py", line 8, in <module> | |
class MyAppForm(ModelForm): | |
File "path/to/django/forms/models.py", line 206, in __new__ | |
opts.exclude, opts.widgets, formfield_callback) | |
File "path/to/django/forms/models.py", line 160, in fields_for_model | |
formfield = f.formfield(**kwargs) | |
File "path/to/django/db/models/fields/related.py", line 1031, in formfield | |
(self.name, self.rel.to)) | |
ValueError: Cannot create form field for 'x' yet, because its related model u'otherapp.X' has not been loaded yet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Horrid fix: