id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 1487,docs/model-api for ForeignKeyField lacks option to specify model name,mir@…,Jacob,"The docs for ForeignKeyField in docs/model-api.txt state that you have to pass the model as the first argument. Actually, you can also pass the model name. I came upon this after trying something stupid and getting the following error message: File ""/home/mir/src/django/active/django/db/models/fields/related.py"", line 410, in __init__ assert isinstance(to, basestring), ""ForeignKey(%r) is invalid. First parameter to ForeignKey must be either a model, a model name, or the string %r"" % (to, RECURSIVE_RELATIONSHIP_CONSTANT) AssertionError: ForeignKey() is invalid. First parameter to ForeignKey must be either a model, a model name, or the string 'self' I'm not sure if this actually works, but if not, then the error message is wrong ;-) I need this for cyclic foreign key references ... (no, it's not designed by me, so don't bash me about it ...) ",defect,closed,Documentation,magic-removal,trivial,invalid,model,,Unreviewed,0,0,0,0,0,0