Create New adminmodel class and define fieldsets... For example http://www.f2finterview.com/web/Django/22/ it is clearly explain you
On Thu, Oct 25, 2012 at 3:51 AM, Nicolas Emiliani <or3st3s@gmail.com> wrote:
Hi,As the subject states, is there a way to display a model formset in a ModelForm?The thing is that I have a Verification model with its ModelAdmin, and then I havean ImageModel that has no ForeignKey to the Verification model (and I intend to keepit that way) so I can not inline it into the VerificationAdmin and I would like to showa list of Images in my VerificationAdmin based on a queryset performed (i assume) at__init__ method of VerificationAdminForm. How could this be accomplished?This is how it goes:class Image(models.Model):....
class Verification(models.Model):....class VerificationAdminForm(forms.ModelForm):....class VerificationAdmin(admin.ModelAdmin):form = VerificationAdminFormmodel = Verification--fieldsets = [ ... ]Any ideas would be greatly appreciated.Thanks in advance.--
Nicolas Emiliani
Lo unico instantaneo en la vida es el cafe, y es bien feo.
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
--
Thanks & Regards
Stephen S

Website: www.f2finterview.com
Blog: blog.f2finterview.com
Tutorial: tutorial.f2finterview.com
Group: www.charvigroups.com
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment