The first looks correct. Inheritance flows all the way down.

On Thu, Aug 20, 2015 at 9:53 AM, Déborah Leder <[email protected]> wrote:

> You mean, something like that would work ?
> from mezzanine.core.management.commands.createdb import Command as
> MezzaCommand
>
> class Command(MezzaCommand):
>     [...]
>     def create_pages(self):
>         [...]
>     [...]
>
> Or shoul I write ?
> from django.core.management.base import BaseCommand
> from mezzanine.core.management.commands.createdb import Command as
> MezzaCommand
>
> class Command(BaseCommand, MezzaCommand):
>     [...]
>     def create_pages(self):
>         [...]
>     [...]
>
> And then, all the other methods like handle and create_user would still
> exist with my new command ?
>
> I am not very familiar with the inheritance system...
>
> --
> 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