Project

General

Profile

Feature #72

raw_id_fields support for proxy fields

Added by Stephen Burrows over 13 years ago. Updated over 13 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Admin
Target version:
-
Start date:
01/20/2011
Due date:
% Done:

0%

Estimated time:

Description

Currently there's no way to use proxy fields in the model admin for some items such as raw_id_fields: the ModelAdmin doesn't validate because it can't find the field using _meta.get_field(). I think this is related to the issues that django 1.3 has with proxy fields (ticket #71) but I'm not sure yet.

History

#1

Updated by Stephen Burrows over 13 years ago

  • Status changed from New to Feedback
  • Assignee changed from Stephen Burrows to Joseph Spiros

This is semi-resolved with commit 3ffa19cadab3f60f7b0781aac87b17365837c4b0. I say semi-resolved because the hacks involved are pretty specific to django internals, so we may not be able to support this kind of behavior easily in the long term. That being said, I don't think there's any better way to achieve this effect.

If we're okay with this kind of code in contrib, then I can go ahead and add support for raw_id_fields and filter_horizontal/filter_vertical.

#2

Updated by Stephen Burrows over 13 years ago

  • Status changed from Feedback to Resolved

Merged raw_id_fields support into melinath/master with commit a6423a6739a7cc4f8bb0c7e482d56a88ef201f2a.

Also available in: Atom PDF