Closed alexgleason closed 6 years ago
Which version of Django are you using? This module has been tested on Django 1.11
Hi, I'm using Django 2.0
Ah, it seems that field.rel
should be field. remote_field
instead. I haven't tested this app on 2.0 yet, but you can provide a pull request that fixes Django 2.0 compatibility (and keeps 1.11 compat)
@vdboor I did change this to field.remote_field.model
, fixed another typo unrelated to this and I still see errors about missing name and model attributes. I think these are happening then the FK relation is specified as string not as a model.
I'd love to contribute and make some fixes but it looks like you don't have any tests at all and you claim the package is production stable and working with Django 2.0 while it clearly isn't. Without tests I really have no idea what I'm changing in the code and if I'm not breaking anything else.
@atodorov can you send me the fixes? I am also using django 2.0
@mauler I didn't manage to complete them b/c there were other unrelated issues and I didn't have time for them. I will get back to this once I really need it for my project, which is to say not probably very soon.
This is now fixed in the master branch (see 6525fb014f88d7eefe0ac1a00c0d19a0ea3a55c8). I'm a bit cautious to release a new version already because I haven't tested this code on a full Django 2.0 project yet. If one of you could do that, I'd be really happy about it!
The first unit testing code was added as well, something that is really needed!
Nevermind -- after adding some tests I've released v0.3!
When building Sphinx html docs with the plugin enabled I get this error:
EDIT: Here is the full traceback