I am not sure if I ever posted on the list about this.

Here was my solution:

class EmailForm(Page, RichText):
    
"""                                                                             
                

    A user-built 
form.                                                                           
   

    """

class EmailFormAdmin(FormAdmin):
    
"""                                                                             
                

    Custom admin for email 
formsas                                                                  
    """

This seems to magically work. You get the admin of a form without 
inheriting from Form. You can inherit from FormAdmin.



On Wednesday, February 26, 2014 at 12:56:12 PM UTC-5, Dave Bauer wrote:
>
> Thanks, I can use Field Injection to add a new field/attribute I can check 
>> for the form. How about new permissions? Can I add those to Form without 
>> affecting the basic operation?
>>
>
> I am still curious about why inheriting is not allowed because that is an 
> interesting design feature, and the reason for the decision would be 
> educational, I think.
>
> I am also curious how the code creates the content model instance for an 
> instance of Page or a model that inherits from Page.
>
> Dave 
>

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to