> Just redefine your Command class option_list:
> class MyBadCommand(BaseCommand):
> option_list = () # no options at all...
The problem is that I want to be able to write my own options.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To po
On Apr 26, 11:50 pm, "." wrote:
> Hello,
>
> I have several questions connected with custom commands.
>
> 1. How to delete anything from this dict? Is there a specific method
> for this? [1]
>
> >>> Poll.objects.all()
>
> []
This is not a dict, it's a QuerySet containing one single Poll
instance
Hello,
I have several questions connected with custom commands.
1. How to delete anything from this dict? Is there a specific method
for this? [1]
>>> Poll.objects.all()
[]
2. How to get rid of default options (which are available from --help
(traceback, verbosity etc.))? Those are handled by
B
3 matches
Mail list logo