Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

generic_inlines support in create_update.py #6

Open
GoogleCodeExporter opened this issue Mar 16, 2015 · 0 comments
Open

generic_inlines support in create_update.py #6

GoogleCodeExporter opened this issue Mar 16, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Hello Surfer,
Will be great to have generic relation support also in create_update.py 
from wadofstuff-django.views package.

I've made some changes in file (attached), and now i can use it with 
generic relations:

form = {
    'model': Band,
    'form_class': BandForm,
    'generic_inlines':[{
        'form':MailForm,
        'model':Mail,
        'extra':1,
        'max_num':1,
        'can_delete':False,
    }],
    'post_save_redirect':'/band/%(id)s/'
}  

Original issue reported on code.google.com by [email protected] on 12 Oct 2009 at 7:58

Attachments:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant