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.