swisscom / cleanerversion

CleanerVersion adds a versioning/historizing layer to your relational DB which implements a "Slowly Changing Dimensions Type 2" behavior
Apache License 2.0
136 stars 53 forks source link

After 1.6.0 identity_shortener fails with 'UUID' object has no attribute '__getitem__' #123

Closed s-m-b closed 6 years ago

s-m-b commented 7 years ago

With list_display_show_identity = True in admin

brki commented 7 years ago

The fix would be to add str() around object.identity at https://github.com/swisscom/cleanerversion/blob/87b0a3c7f8b5e755fc67670785016457325d4c12/versions/admin.py#L276 .

Adding a test would be nice.

brki commented 7 years ago

I assume that history_view() in admin.py also fails, since it calls unquote(), which expects it's parameter to be a string - but it will receive a UUID if native UUIDs are being used.

rossmechanic commented 6 years ago

Any plans to fix this? Or to fix the history view?

maennel commented 6 years ago

From what I can see, @rossmechanic addressed this issue with #142 Closing.