Re: Form foreign key add new

2009-11-25 Thread Tim Valenta
> I don't know what to replace XXX with, I know it's a db_field > but I don't > know how/where to get it from. AutoFields are the auto-incrementing primary key of your model. By default, your models get an automatic "id" attribute, which is what this is. Django frequently deals with the raw dat

Re: Form foreign key add new

2009-11-25 Thread cerberos
I've realised I can't inherit from RelatedFieldWidgetWrapper because I want to override __init__ so I've copies the entire class an made a few changes. Still need to know what to pass in for rel. -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Form foreign key add new

2009-11-25 Thread cerberos
I want the same add new functionality as model foreign key select boxes in admin, there the select widget is passed through django.contrib.admin.widgets.RelatedFieldWidgetWrapper to add the additional html (image, links etc). The __init__.py takes the admin_site instance, I want this functionality