Changes between Initial Version and Version 1 of Ticket #21472, comment 4
- Timestamp:
- Nov 20, 2013, 4:34:07 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #21472, comment 4
initial v1 3 3 In the '''models.py''': 4 4 5 {{{ 5 6 class Property(models.Model): 6 7 property_id = models.IntegerField(primary_key=True, default=0) … … 11 12 property_id = models.ForeignKey(Property) 12 13 image_path = models.ImageField(null=False, upload_to='test') 13 14 }}} 14 15 Then in the '''admin.py''': 15 16 {{{ 16 17 class PropertyImagesAdmin(admin.TabularInline): 17 18 model = PropertyImages … … 27 28 ] 28 29 29 30 30 admin.site.register(Property, PropertyAdmin) 31 31 }}} 32 32 I am not sure if Django is the problem or I have to do this differently in later version. 33 33