I would like to override (create custom) widgets/foreign.html template for a ForeignKey field but can't find this in the source. Browsing the Django SVN respository I can find these files at revision: 7966, but they are removed after this revision;
http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/templates/widget?rev=7967
Where does the code to generate the form select field and 'add another/new' link html for a foreignkey field live?
How would I override this to create a custom form widget for a particular model field.