Changes between Initial Version and Version 2 of Ticket #12187
- Timestamp:
- Nov 7, 2009, 5:08:44 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12187 – Description
initial v2 1 1 admin.py : 2 2 {{{ 3 3 class Material_Admin(admin.ModelAdmin): 4 4 list_display=('cod_mat','nome','tipo_de_material','unidade_material') … … 8 8 raw_id_fields =('unidade_material','tipo_de_material') 9 9 10 10 }}} 11 11 models.py 12 12 {{{ 13 13 class Material(models.Model): 14 14 cod_mat= models.CharField("código do material",max_length=6,primary_key=True) … … 23 23 class Meta: 24 24 verbose_name= u'Material' 25 25 }}} 26 26 when i put a value in the box left by raw_id_fields i have this traceback : 27 {{{ 27 28 Environment: 28 29 … … 194 195 % self.model._meta.object_name) 195 196 DoesNotExist: Unidade_material matching query does not exist. 196 197 }}} 197 198 198 199 can some help please ?