I've got 2 models condo (building) and unit (apartment). Condos and units have some specific fields and both have street_name and street_number (in the case of condo street_number can be multiple, comma separated). Condos are created manually from the user in the admin, units are imported/updated (100.000 circa, every night) from a .csv file. Now in the admin, in the condo's change list, i need to show one link for every condo's table row, something named "show units", clicking it i would like to show a list of units in that condo. Now you may have thought a "simple foreign key?" ahem, no!?! I haven't a foreign key, but the requirements are that for each condo the user must be able to define that 2 fields, street_name and street_number (s), so a unit is "in" a condo if it has the same street_name (or part of it) and one of the street_number(s) specified, comma separated. After some heavy trying i read this solution: http://dpaste.com/89668/ and for each row in condo's change list i generate links like theese:
http://localhost:8000/admin/mlsunits/mlsunit/?condo=7 http://localhost:8000/admin/mlsunits/mlsunit/?condo=15 http://localhost:8000/admin/mlsunits/mlsunit/?condo=12 etc The PROBLEM is the every time in the browser i open a link like thoose, django redirects me to this url: http://localhost:8000/admin/mlsunits/mlsunit/?e=1 ... feeling myself part of a joke :-) i searched deeply and found that in the contrib.admin seems not possible to use parameters (get or post) that are not defined as fields into the model, damn it ! http://code.djangoproject.com/ticket/9119 How can i solve this issue ? it seems too redundant creating a custom view (extending or not the admin one) every time i need link lists to relative lists, i'm thinking about the need to use this pattern more than ten times in my app, it will result in a very hawfull situation... so, please can someone help me using custom get parameters in admin views ??? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

