Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

help

  • Loading branch information...
commit a029930fdb7492aa7c4a37208de32f16b5dafbf2 1 parent 348fa72
@sacrac sacrac authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 bosques/forms.py
View
6 bosques/forms.py
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.