Permalink
Browse files

help

  • Loading branch information...
1 parent 348fa72 commit a029930fdb7492aa7c4a37208de32f16b5dafbf2 @sacrac sacrac committed Jul 16, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 bosques/forms.py
View
@@ -26,6 +26,12 @@ class PropietarioBosquesForm(ModelForm):
widget = forms.CheckboxSelectMultiple())
extraccion = forms.ModelMultipleChoiceField(queryset = MetodoExtraccion.objects.order_by('nombre'),
widget = forms.CheckboxSelectMultiple())
+
+ # def __init__(self, *args, **kwargs):
+ # super(PropietarioBosquesForm, self).__init__(*args, **kwargs)
+ # rel = ManyToOneRel(self.instance.tipo_producto.model, 'id')
+ # self.fields['tipo_producto'].widget = RelatedFieldWidgetWrapper(self.fields['tipo_producto'].widget, rel, self.admin_site)
+
class Meta:
#widgets = {'tipo_propiedad': forms.CheckboxSelectMultiple}
model = PropietarioBosques

0 comments on commit a029930

Please sign in to comment.