List Info

Thread: Edit a Foreign Key object from within a view




Edit a Foreign Key object from within a view
user name
2006-02-17 04:18:46
Hi everyone,

I sat down and implemented this functionality.  Now when you
go to an
admin page that has a pulldown for a Foreign Key object,
you'll also
see a change icon that will let you edit the selected
object.

Run this command in django/contrib/admin:

patch -p0 < /path/to/related_object_editing.patch

Please let me know if anyone finds any bugs with it.

Is there any chance this will get incorporated into the main
code
base?  I think it's a very useful feature, hopefully others
will too.

-berto.

On 2/15/06, Roberto Aguilar <roberto.c.aguilargmail.com> wrote:
> Hello,
>
> I have a Model that has a FK to an Address Model.  In
the admin, I get
> a pulldown to select the address or a plus sign to add
a new one.  Is
> there some way to get an edit button next to the plus
sign so that i
> can get the same window as the add window, but it's
pre-filled with
> the address I want to edit.
>
> At the moment there is no simple way for me to edit the
address. as
> the address list is constantly getting bigger and
addresses are harder
> to find.
>
> Thanks!
> -berto.
>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )