[RESOLVED]: Re: Search/Lookup of raw_id_field in inline

2012-09-18 Thread Axel Rau

Am 18.09.2012 um 12:19 schrieb Axel Rau:

> I have this inline:
> ---
> class LocallistentryInline(TabularInline):
>model = Locallistentry
>extra = 1
>raw_id_fields = ('relaynetfk', 'relayhostfk', 'mailrelationfk', 
> 'senderdomainfk')
>exclude = ('remarks', )
> 
> class LocallistAdmin(ModelAdmin):
>inlines = [LocallistentryInline, ]
> site.register(Locallist, LocallistAdmin)
> ---
> The raw_id_fields are FKs of type int and I can select such a related model 
> by entering its PK in the raw id field.
> This works fine for changing or adding rows.
> However when I click the little magnifier glass, I come to the change list of 
> the related table where I can select a row (mark its check box) but have no 
> action or other widget, which says "return selected to the inline".
> 
> How is this supposed to work?
This was a browser issue.
Adjusting the browser to open a new tab instead a new window (which is my usual 
adjustment), makes these check boxes and the action selector box appear.

Axel
---
PGP-Key:29E99DD6  ☀ +49 151 2300 9283  ☀ computing @ chaos claudius

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Search/Lookup of raw_id_field in inline

2012-09-18 Thread Axel Rau
I have this inline:
---
class LocallistentryInline(TabularInline):
model = Locallistentry
extra = 1
raw_id_fields = ('relaynetfk', 'relayhostfk', 'mailrelationfk', 
'senderdomainfk')
exclude = ('remarks', )

class LocallistAdmin(ModelAdmin):
inlines = [LocallistentryInline, ]
site.register(Locallist, LocallistAdmin)
---
The raw_id_fields are FKs of type int and I can select such a related model by 
entering its PK in the raw id field.
This works fine for changing or adding rows.
However when I click the little magnifier glass, I come to the change list of 
the related table where I can select a row (mark its check box) but have no 
action or other widget, which says "return selected to the inline".

How is this supposed to work?

Axel
---
PGP-Key:29E99DD6  ☀ +49 151 2300 9283  ☀ computing @ chaos claudius

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.