Implement relationships & tweaks to improve Django admin#74
Implement relationships & tweaks to improve Django admin#74EvdH0 wants to merge 16 commits intoneo4j-contrib:rc/0.2.1from
Conversation
…re cleanup the choices option
|
Any plans to accept this pull request? |
|
I am looking at it now @EvdH0 @werneckpaiva. As they say, better late than never. Even when very mega insanely late ? |
neomodel 5.3.0 moved some internals
|
Fixed things ; the problem was actually that the modifications introduced indirect calls to the prefetch mechanism, which was not implemented in django-neomodel. |
|
Tests now pass ; but if you open the admin interface and try to list / add some Book / Shelf / Author (so the classes that are modified by this), then it fails. |
The pull request includes a proposal to add functionality to add or remove relationships between nodes. Many-to-Many relationships show up as a
multiple selectelements (and the horizontal/vertical filter widgets can be applied in the Django admin). Additionally minor improvements to the Django admin experience are included.Features
pkproperty into an alias instead of a reference to the primary-key (because the Django internals do not addresspkconsistently in the same way). This allows general lookup (and for example fixes the delete button in Django admin)Limitations
choicesof the constructor explicitly (ieSTATUS = {'':'Empty','F': 'Female', 'M': 'Male', 'O': 'Other'}. Need to check if this is the intended behaviour in neomodel