http://groups.google.com/group/django-users/browse_thread/thread/eaafb5c60108f3bd/50d871a1627453f5?fwc=1
On Jan 24, 9:22 pm, arlen nascimento <arlen.nascime...@gmail.com>
wrote:
> Hi all,
> i'm trying to do a simple thing, but it seems not so simple in django.
>
> I have the following models
>
> class Monitor(models.Model):
> id ...
> name ...
> address = foreignkey(MonitorAddress)
>
> class MonitorAddress(models.Model):
> address = CharField()
>
> what i want to do is as long as i assign a name to a monitor in the
> admin add page, MonitorAddress show me only the non-assigned addresses
> in the combobox
>
> i've already tried with forms and inserting a raw sql query in
> models.py and forms.py, but it looks like these files are loaded only
> once
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment