Changes between Initial Version and Version 2 of Ticket #12187


Ignore:
Timestamp:
Nov 7, 2009, 5:08:44 PM (15 years ago)
Author:
Alex Gaynor
Comment:

Please use the preview button.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12187 – Description

    initial v2  
    11admin.py :
    2 
     2{{{
    33class Material_Admin(admin.ModelAdmin):
    44        list_display=('cod_mat','nome','tipo_de_material','unidade_material')
     
    88        raw_id_fields =('unidade_material','tipo_de_material')
    99
    10 
     10}}}
    1111models.py
    12 
     12{{{
    1313class Material(models.Model):
    1414        cod_mat= models.CharField("código do material",max_length=6,primary_key=True)
     
    2323        class Meta:
    2424                verbose_name= u'Material'
    25 
     25}}}
    2626when i  put a value in the box left by raw_id_fields  i have this traceback :
     27{{{
    2728Environment:
    2829
     
    194195    % self.model._meta.object_name)
    195196DoesNotExist: Unidade_material matching query does not exist.
    196 
     197}}}
    197198
    198199can some help please ?
Back to Top