Fixes for create new foreignkeyfield

This commit is contained in:
Antonio de la Rosa 2015-04-28 04:08:43 +02:00
parent bfa0684d78
commit e6430cf15e
2 changed files with 55 additions and 4 deletions

View file

@ -30,7 +30,7 @@ class ForeignKeyField extends IntegerField{
$this->size=$size;
$this->form='SelectForm';
$this->related_model=&$related_model;
$this->container_model=$this->related_model->name_model;
$this->container_model=$this->related_model->name;
//Fields obtained from related_model if you make a query...
$this->fields_related_model=array();
//Representative field for related model...