Hello, I think that you can not inherit from mezzanine.forms.models.Form since it does inherit from mezzanine.pages.models.Page itself. This falls under the warning in the documentation I pointed out in a previous email. I don't know what you try to achieve, but since mezzanine.forms.models.Form already inherit from Page, you can use it as is. To set up a contact page, just a form instance to your site through the admin and add the fields you need. Depending on what you aim, you may also consider field injection or custom model but not inherited from Page.
hope that helps regards, Luc > here it's my custom model > > https://gist.github.com/anonymous/9840574 > > for the space between the " _" I suppose it's render error of the google > group form > > If you have any idea ? > > Thank you > > Le vendredi 28 mars 2014 11:15:49 UTC+1, Luc Milland a écrit : > > > > Hello, > > you should use gist or some other handy way to post your code and post > > the whole thing, so we don't have to guess the rest. > > For instance, here you use the "_" function which is usually a shortcut > > for ugettext > > ( > > https://docs.djangoproject.com/en/dev/topics/i18n/translation/#standard-translation) > > > > . > > If this is the way you use it, why is there a space between '_' and > > '(' ? > > > > regards, > > Luc > > > > Le vendredi 28 mars 2014 à 01:42 -0700, Cajoline a écrit : > > > I tried to create a subclass of Form model like this: > > > > > > class ContactPage (Page, Form): > > > > "" " > > > > Representing A page of the home page > > > > "" " > > > > RichTextField address = (_ ('Info'), null = True, blank = True) > > > > class Meta: > > > > verbose_name = _ ("Form & Info") > > > > verbose_name_plural = _ ("Form & Info") > > > > > > > > > But I get the following error: > > > > > > *TypeError: Error When calling the metaclass bases * > > > * Can not create a consistent method resolution * > > > > > > Do you have any idea? thank you > > > > > > Le mercredi 26 mars 2014 20:01:44 UTC+1, Cajoline a écrit : > > > > > > > > Hello, > > > > I would like to create a subclass model of form page, but I can not > > add > > > > custom fields. > > > > > > > > Create a subclass of a normal page I have no problem but for the form > > page > > > > I can not do it, because the fields to create form is not displayed > > > > > > > > Would you have an example of a subclass of page form > > > > > > > > Thank you > > > > > > > > > > > > > > -- 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.
