Commits

Gustavo Picon committed 755fc99

fixed nodes updating in the admin

thanks Anonymous for the fix

(the admin needs tests, badly)

  • Participants
  • Parent commits b943312

Comments (0)

Files changed (1)

File treebeard/forms.py

             else:
                 self.instance = self.Meta.model.add_root(** self.cleaned_data)
         else:
+            # this is needed in django >= 1.2
+            self.instance.save()
             if reference_node_id:
                 reference_node = self.Meta.model.objects.get(
                     pk=reference_node_id)