bmihelac / feincms-feincmsext

Extensions for FeinCMS
11 stars 4 forks source link

--delete_all AttributeError #1

Closed davideickhoff closed 14 years ago

davideickhoff commented 14 years ago

when calling the command with the --delete_all parameter, the parent object is None at level 0 I think, or am i doing something wrong?

File "feincmsext/util/structure.py", line 22, in import_structure p = Page(active=True, title=title, slug=slugify(title), in_navigation=True, parent=Page.objects.get(pk=parent.pk)) AttributeError: 'NoneType' object has no attribute 'pk'

bmihelac commented 14 years ago

thanks for reporting, this is fixed in b6ac6589edbc2cb126bd91ef92548211b0b971a7