Ok, what if I make the FK just not editable and assign a value at
runtime?

Will that work?

On May 15, 5:56 pm, John M <[EMAIL PROTECTED]> wrote:
> I have checked the forum, and still can't believe I can't find a
> solution to what I perceive as a simple problem:
>
> I have two models:
>
> Customer
>    Name
>    phone
>
> Order
>    Customer (foreign key to Customer)
>    date
>    product
>
> When I put up the form for order, I don't want the Customer (foreign
> key) to appear.  I've not seen anything on the forum that shows you
> can easily eliminate a field from the form?
>
> Unless I'm missing how to create a custom form, bind it to the DB's
> data and use it like I can form_for_instance() and form_for_model().
>
> using FFI with a customer form, it doesn't seem to bind any data to
> the fields, unless I'm missing something big, cause that would be
> perfect, no?
>
> Hoping someone can help


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to