List Info

Thread: admin site and parent/child relationship




admin site and parent/child relationship
user name
2007-08-30 14:05:41
Hi people, I got a little problem with the admin page, I have models to represent Country/State situation and a Person model that reference  Country and State models but I want in admin that when I change a country of a person, the list of states get updated to states of that country. How can I do that?

--
Lic. José M. Rodriguez Bacallao
Cupet
-----------------------------------------------------------------
Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo.

Recuerda: El arca de Noe fue construida por aficionados, el titanic por profesionales
-----------------------------------------------------------------
--~--~---------~--~----~------------~-------~--~----~
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://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: admin site and parent/child relationship
country flaguser name
United States
2007-08-30 14:20:54
There is no way to do so in django admin now.


--~--~---------~--~----~------------~-------~--~----~
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 htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: admin site and parent/child relationship
user name
2007-08-30 14:27:18
ok, thanks

On 8/30/07, Alex Koshelev < daevaorngmail.com">daevaorngmail.com> wrote:

There is no way to do so in django admin now.







--
Lic. José M. Rodriguez Bacallao
Cupet
-----------------------------------------------------------------
Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo.

Recuerda: El arca de Noe fue construida por aficionados, el titanic por profesionales
-----------------------------------------------------------------
--~--~---------~--~----~------------~-------~--~----~
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://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: admin site and parent/child relationship
country flaguser name
United States
2007-08-31 07:50:24
You can write your own view and template that will implement
this
functionality. Then override Admin's urls with yours for the
specific
view.
For more information look at djangobook.com and find a
relevant
chapter there.

--
Jakub Wi¶niowski

On 30 Sie, 21:05, "Lic. José M. Rodriguez
Bacallao" <jmr...gmail.com>
wrote:
> Hi people, I got a little problem with the admin page,
I have models to
> represent Country/State situation and a Person model
that reference  Country
> and State models but I want in admin that when I change
a country of a
> person, the list of states get updated to states of
that country. How can I
> do that?
>
> --
> Lic. José M. Rodriguez Bacallao
> Cupet
>
------------------------------------------------------------
-----
> Todos somos muy ignorantes, lo que ocurre es que no
todos ignoramos lo
> mismo.
>
> Recuerda: El arca de Noe fue construida por
aficionados, el titanic por
> profesionales
>
------------------------------------------------------------
-----


--~--~---------~--~----~------------~-------~--~----~
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 htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: admin site and parent/child relationship
country flaguser name
United States
2007-08-31 08:52:16
Yes,  but my idea is to use admin interface without writing
my own
views etc, because of I have a lot this similar
situations...and I´m
new using Django!

Thanks

On 31 ago, 09:50, eXt <restless.be...gmail.com> wrote:
> You can write your own view and template that will
implement this
> functionality. Then override Admin's urls with yours
for the specific
> view.
> For more information look at djangobook.com and find a
relevant
> chapter there.
>
> --
> Jakub Wiśniowski
>
> On 30 Sie, 21:05, "Lic. José M. Rodriguez
Bacallao" <jmr...gmail.com>
> wrote:
>
> > Hi people, I got a little problem with the admin
page, I have models to
> > represent Country/State situation and a Person
model that reference  Country
> > and State models but I want in admin that when I
change a country of a
> > person, the list of states get updated to states
of that country. How can I
> > do that?
>
> > --
> > Lic. José M. Rodriguez Bacallao
> > Cupet
> >
------------------------------------------------------------
-----
> > Todos somos muy ignorantes, lo que ocurre es que
no todos ignoramos lo
> > mismo.
>
> > Recuerda: El arca de Noe fue construida por
aficionados, el titanic por
> > profesionales
> >
------------------------------------------------------------
-----


--~--~---------~--~----~------------~-------~--~----~
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 htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: admin site and parent/child relationship
country flaguser name
United States
2007-08-31 08:58:26
Hola José, necesito representar un modelo similar al
Country/State,
pero quiero que a un determinado State se acceda solo a
traves de la
interface del Country al que pertenece.
Tenes idea como puedo hacer eso utilizando la interface
admin??

Muchas gracias, saludos desde Argentina

On 30 ago, 16:05, "Lic. José M. Rodriguez
Bacallao" <jmr...gmail.com>
wrote:
> Hi people, I got a little problem with the admin page,
I have models to
> represent Country/State situation and a Person model
that reference  Country
> and State models but I want in admin that when I change
a country of a
> person, the list of states get updated to states of
that country. How can I
> do that?
>
> --
> Lic. José M. Rodriguez Bacallao
> Cupet
>
------------------------------------------------------------
-----
> Todos somos muy ignorantes, lo que ocurre es que no
todos ignoramos lo
> mismo.
>
> Recuerda: El arca de Noe fue construida por
aficionados, el titanic por
> profesionales
>
------------------------------------------------------------
-----


--~--~---------~--~----~------------~-------~--~----~
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 htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: admin site and parent/child relationship
user name
2007-08-31 12:04:15
podrias ser un poco mas explicito, entiendo vagamente tu idea, podrias ponerme un ejemplo?

On 8/31/07, Diego < equissoftwaregmail.com"> equissoftwaregmail.com> wrote:

Hola José, necesito representar un modelo similar al Country/State,
pero quiero que a un determinado State se acceda solo a traves de la
interface del Country al que pertenece.
Tenes idea como puedo hacer eso utilizando la interface admin??

Muchas gracias, saludos desde Argentina

On 30 ago, 16:05, "Lic. José M. Rodriguez Bacallao&quot; < jmr...gmail.com">jmr...gmail.com>
wrote:
> Hi people, I got a little problem with the admin page, I have models to
> represent Country/State situation and a Person model that reference&nbsp; Country
>; and State models but I want in admin that when I change a country of a
> person, the list of states get updated to states of that country. How can I
> do that?
>
> --
> Lic. José M. Rodriguez Bacallao
&gt; Cupet
> -----------------------------------------------------------------
> Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo
> mismo.
>;
> Recuerda: El arca de Noe fue construida por aficionados, el titanic por
> profesionales
> -----------------------------------------------------------------



Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo.

Recuerda: El arca de Noe fue construida por aficionados, el titanic por profesionales
-----------------------------------------------------------------
--~--~---------~--~----~------------~-------~--~----~
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://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: admin site and parent/child relationship
country flaguser name
United States
2007-08-31 13:18:58
Si, disculpame.
Ej: cliente y llamadas del cliente
La interface admin automatica genera interfaces para
clientes y para
llamadas, yo quiero que un usuario al seleccionar un
cliente,  pueda
acceder a las llamadas hechas por el cliente (mediante un
link), es
decir que vea las llamadas hechas solo por ese cliente.
De la manera standar en la interface de llamadas veria la de
todos los
clientes.

Me explico??
Te agradezco el interes


On 31 ago, 14:04, "Lic. José M. Rodriguez
Bacallao" <jmr...gmail.com>
wrote:
> podrias ser un poco mas explicito, entiendo vagamente
tu idea, podrias
> ponerme un ejemplo?
>
> On 8/31/07, Diego <equissoftw...gmail.com> wrote:
>
>
>
>
>
> > Hola José, necesito representar un modelo similar
al Country/State,
> > pero quiero que a un determinado State se acceda
solo a traves de la
> > interface del Country al que pertenece.
> > Tenes idea como puedo hacer eso utilizando la
interface admin??
>
> > Muchas gracias, saludos desde Argentina
>
> > On 30 ago, 16:05, "Lic. José M. Rodriguez
Bacallao" <jmr...gmail.com>
> > wrote:
> > > Hi people, I got a little problem with the
admin page, I have models to
> > > represent Country/State situation and a
Person model that
> > reference  Country
> > > and State models but I want in admin that
when I change a country of a
> > > person, the list of states get updated to
states of that country. How
> > can I
> > > do that?
>
> > > --
> > > Lic. José M. Rodriguez Bacallao
> > > Cupet
> > >
------------------------------------------------------------
-----
> > > Todos somos muy ignorantes, lo que ocurre es
que no todos ignoramos lo
> > > mismo.
>
> > > Recuerda: El arca de Noe fue construida por
aficionados, el titanic por
> > > profesionales
> > >
------------------------------------------------------------
-----
>
> --
> Lic. José M. Rodriguez Bacallao
> Cupet
>
------------------------------------------------------------
-----
> Todos somos muy ignorantes, lo que ocurre es que no
todos ignoramos lo
> mismo.
>
> Recuerda: El arca de Noe fue construida por
aficionados, el titanic por
> profesionales
>
------------------------------------------------------------
-----


--~--~---------~--~----~------------~-------~--~----~
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 htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: admin site and parent/child relationship
user name
2007-08-31 14:58:40
Have you looked at the admin filter option, it's not exactly waht you're asking for, but could do the job?
In the admin view (change_list for call ) if you append:&nbsp;  ?client=MyClient&nbsp; to the url, the data get's filtered.



--~--~---------~--~----~------------~-------~--~----~
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://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

[1-9]

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