Changes between Initial Version and Version 1 of Ticket #21472, comment 4


Ignore:
Timestamp:
Nov 20, 2013, 4:34:07 AM (11 years ago)
Author:
Claude Paroz

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21472, comment 4

    initial v1  
    33In the '''models.py''':
    44
     5{{{
    56class Property(models.Model):
    67    property_id = models.IntegerField(primary_key=True, default=0)
     
    1112    property_id = models.ForeignKey(Property)
    1213    image_path = models.ImageField(null=False, upload_to='test')
    13 
     14}}}
    1415Then in the '''admin.py''':
    15 
     16{{{
    1617class PropertyImagesAdmin(admin.TabularInline):
    1718    model = PropertyImages
     
    2728    ]
    2829
    29 
    3030admin.site.register(Property, PropertyAdmin)
    31 
     31}}}
    3232I am not sure if Django is the problem or I have to do this differently in later version.
    3333
Back to Top