I'm having the same issue but when trying to filter the FK of an Inline
Formset to customize the checkout process. In my case it seems to be
because I can't get to initialize the inline properly (haven't tackled it
yet) for each Cart Item. I get the same error as you, so it is probably in
the "same" issue that throws that kind of error...

HTH,
Rodrigo

On Mon, Apr 11, 2016 at 10:14 PM, Geoff P <[email protected]> wrote:

> Hi everyone,
>
> My issue is that the Slide info is not showing in the admin page of the
> site, but the stuff in the HomePage class is. I'm wondering if anyone has
> had a similar problem, or if anyone has any tips on how to debug. Thanks
> for taking a look!  Here's my setup:
>
> Python 2.7.8
> Django 1.9.4
> Mezzanine 4.1.0
> SQLite on local machine
>
> *models.py*
>
>
>
>
> *from django.db import modelsfrom django.utils.translation import
> ugettext_lazy as _from mezzanine.core.fields import FileFieldfrom
> mezzanine.core.models import Orderable, SiteRelatedfrom
> mezzanine.pages.models import Pagefrom mezzanine.utils.models import
> upload_toclass HomePage(Page): ''' Custom HomePage ''' welcome_heading =
> models.CharField( max_length = 45, help_text = 'Welcome Heading')
> welcome_paragraph = models.CharField( max_length = 450, help_text =
> 'Welcome Paragraph', null = True) class Meta: verbose_name = _('Home Page')
> verbose_name_plural = _('Home Pages')class Slide(Orderable): ''' Slider for
> the HomePage ''' homepage = models.ForeignKey( HomePage,
> related_name='slides' ) image = FileField( verbose_name = _('Image'),
> upload_to = ('theme.Slide.Image', 'slider'), format = 'Image', max_length =
> 255, null = True, blank = True)admin.py*
>
>
>
>
>
> *from django.contrib import adminfrom mezzanine.core.admin import
> TabularDynamicInlineAdminfrom mezzanine.pages.admin import PageAdminfrom
> .models import HomePage, Slideclass SlideInline(TabularDynamicInlineAdmin):
> model = Slideclass HomePageAdmin(PageAdmin): inlines =
> [SlideInline]admin.site.register(HomePage, HomePageAdmin)*
> There are no error messages when I runserver. I'm able to create a
> HomePage and fill out the Welcome Heading and the Welcome paragraph.
> However, the fields for the slides are missing. When I click submit, I get
> this funky error, which I don't know how to address:
>
> ValidationError at /admin/theme/homepage/16/change/
>
> [u'ManagementForm data is missing or has been tampered with']
>
> Request Method: POST
> Request URL:
> http://127.0.0.1:8000/admin/woodcraft_lite_theme/homepage/16/change/
> Django Version: 1.9.4
> Exception Type: ValidationError
> Exception Value:
>
> [u'ManagementForm data is missing or has been tampered with']
>
> Exception Location: c:\Python27\lib\site-packages\django\forms\formsets.py
> in management_form, line 98
> Python Executable: c:\Python27\python.exe
> Python Version: 2.7.8
> Python Path:
>
> ['c:\\Users\\Geoff\\django-projects\\woodcraft_lite',
>  'C:\\windows\\system32\\python27.zip',
>  'c:\\Python27\\DLLs',
>  'c:\\Python27\\lib',
>  'c:\\Python27\\lib\\plat-win',
>  'c:\\Python27\\lib\\lib-tk',
>  'c:\\Python27',
>  'c:\\Python27\\lib\\site-packages']
>
> Server time: Tue, 12 Apr 2016 01:09:07 +0000
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to