Browse files

Remove useless comments

  • Loading branch information...
1 parent b8b4629 commit 1599ccca43a771036a546da9b90932140a07c751 @keysen keysen committed Apr 6, 2012
Showing with 0 additions and 27 deletions.
  1. +0 −27 nested_forms/forms.py
View
27 nested_forms/forms.py
@@ -428,15 +428,11 @@ def resolve_callable(var, args=None, kwargs=None, default=None):
elif not self.instance.pk:
initial = resolve_callable(initial, args=[instance], default=[])
- #print "Mes fichiers : ", files
- #print data, data and data.urlencode()or ""
formset = None
#print prefix, "%s-%s" % (prefix, TOTAL_FORM_COUNT), data and data.get("%s-%s" % (prefix, TOTAL_FORM_COUNT), "NOT SET")
#print prefix, "%s-%s" % (prefix, INITIAL_FORM_COUNT), data and data.get("%s-%s" % (prefix, INITIAL_FORM_COUNT), "NOT SET")
- #print type(instance), instance, instance.pk
-
if instance.pk:
if isinstance(field, RelatedObject):
if not queryset or not isinstance(queryset, QuerySet):
@@ -567,27 +563,4 @@ def save(self, commit=True):
formset_name
).add(*objects)
- #self.formsets = {}
- #self.data = {}
- #self.files = {}
- #self.is_bound = False
-
- #for formset_name, formset_values in self.base_formsets.items():
- # new_formset_values = dict(formset_values)
- # new_formset_values.update(
- # {
- # 'initial': None,
- # #'queryset': getattr(instance, formset_name).filter(
- # # pk__in = [ i.pk for i in instances ]
- # #),
- # #'queryset': None,
- # 'extra': 0,
- # }
- # )
-
- # self.formsets[formset_name] = self._get_formset(formset_name, **formset_values)
-
- #if hasattr(self, "formsets_loaded") and callable(self.formsets_loaded):
- # self.formsets_loaded()
-
return instance

0 comments on commit 1599ccc

Please sign in to comment.