On Tue, Nov 13, 2012 at 7:04 PM, Rohit Banga <iamrohitba...@gmail.com> wrote: > I have some abstract models and I have created several concrete > implementations of each of these models. The usecase is create multiple sets > of tables across each having the same set of fields. When I use abstract > models for modelforms it works fine until I get a unique key in the picture. > Details of the problem I faced are detailed in this django ticket. > https://code.djangoproject.com/ticket/19271 > > Working version of code: (Works just by chance - Apparently it is not > supported) > https://github.com/iamrohitbanga/django_ticket_19271/tree/code_working > > Non-Working verison of the code (unique key in abstract model) > https://github.com/iamrohitbanga/django_ticket_19271/tree/code_not_working > > Is it possible to support this feature in a future release? > > Thanks > Rohit >
Can you explain what an "abstract ModelForm" is for? ModelForms are used to accept and validate browser input and serialise that data to a Model, storing or updating that data in a database. Abstract models do not correspond to database tables, so what is the use of this? Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.