Hi,
after moving an existing Django app into a Mezzanine 1.0.2 environment, none of my pages showing StackedInline or TabularInline sections have Add- buttons attached to them. I found references to that problem in those links ...
https://groups.google.com/forum/?fromgroups#!searchin/mezzanine-users/inline$20add/mezzanine-users/h3fjUpB1C0w/YL1UAO3AU2MJhttps://groups.google.com/forum/?fromgroups#!searchin/mezzanine-users/inline/mezzanine-users/h3fjUpB1C0w/Q1ROtNW8T3wJ... but did not find a solution, so i created a small test in a clean VM instance having only Python 2.7 and python-setuptools.
I got the current mezzanine via easy_install from PyPI letting it pull all prerequisites:
django-1.3.1-py2.7.egg
filebrowser_safe-0.2.0-py2.7.egg
grappelli_safe-0.2.1-py2.7.egg
mezzanine-1.0.2-py2.7.egg
Pillow-1.7.6-py2.7-win32.egg
setuptools-0.6c12dev_r88846-py2.7.egg
At next I created a new Mezzanine project and added an application with the following models.py and admin.py (similar to the Django tutorial):
from django.db import modelsclass Author(models.Model): name= models.CharField(max_length=50) def __unicode__(self): return self.nameclass Book(models.Model): title= models.CharField(max_length=50) ref_author= models.ForeignKey(Author) published= models.DateField() def __unicode__(self): return self.title------------------------------
from django.contrib import adminfrom bookshelf.models import *class BookInline(admin.StackedInline): model = Book extra= 1class AuthorAdmin(admin.ModelAdmin): inlines = [ BookInline ]admin.site.register(Author,AuthorAdmin)Running that demo I got the detail view attached.
Does anyone know how I can fix that ?
Thanks!