Hi, is your form automatically generated by the admin or are you talking about a custom made controller and template?
On Wed, Jul 24, 2013 at 4:49 PM, Dennis Backhaus < [email protected]> wrote: > Sounds like a simple task, *but for some reason this only works for the > primary key of the model in my form*. > > Example: > > /customer - opens an empty form to add a new customer > > /customer?customer_id=X - opens a form with the customer information of > customer with customer_id = X for edit > > /customer?customer_name=Tech - opens an empty form to add a new customer > (instead of opening the customer object where customer_name=Tech > > Why is this happening? I spent the last two hours on google trying to find > answers, but I did not find anything yet. Most answers seem to suggest that > it should just simply work. Since it does not, I wonder if this is a TG > (TW) issue? > > > In the end I want to get to the point that customers can only be created > when customer_name is defined in the URL and the customer_name field is > read_only in the form. > > > > If this is not a TG problem, please direct me to the right answer. Thanks > a lot, > > Dennis > > -- > You received this message because you are subscribed to the Google Groups > "TurboGears" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/turbogears. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/turbogears. For more options, visit https://groups.google.com/groups/opt_out.

