Jun 7 16:06:01 d2187228a336 CRON[68]: (root) CMD (python /home/root/main.py > /home/root/app.log 2>&1)
Jun 7 16:07:01 d2187228a336 CRON[72]: (root) CMD (python /home/root/main.py > /home/root/app.log 2>&1)
Jun 7 16:08:01 d2187228a336 CRON[76]: (root) CMD (python /home/root/main.py > /home/root/app.log 2>&1)
Jun 7 16:09:01 d2187228a336 CRON[80]: (root) CMD (python /home/root/main.py > /home/root/app.log 2>&1)
Jun 7 16:10:01 d2187228a336 CRON[84]: (root) CMD (python /home/root/main.py > /home/root/app.log 2>&1)
Jun 7 16:11:01 d2187228a336 CRON[88]: (root) CMD (python /home/root/main.py > /home/root/app.log 2>&1)
Jun 7 16:12:01 d2187228a336 CRON[92]: (root) CMD (python /home/root/main.py > /home/root/app.log 2>&1)
Jun 7 16:13:01 d2187228a336 CRON[96]: (root) CMD (python /home/root/main.py > /home/root/app.log 2>&1)
from django import forms
from .models import Container
from .my_defs import tree_parse
class ContainerForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
user = kwargs.pop('user', None)
self.in_container_id = forms.ChoiceField(choices=tree_parse(0, 'choice', user))
super(ContainerForm, self).__init__(*args, **kwargs)
class Meta:
model = Container
fields = ('title', 'descripton', 'in_container_id')