maybe i'm missing something obvious but it seems that if i have an
inline model that uses the FilePathField a new object is added on
every save.
simple example
models:
class Video(models.Model):
title = models.CharField()
filepath = models.FilePathField(path="/path")
class Story(models.Model):
title = models.CharField()
video = models.ForeignKey(Video)
admin:
class VideoInline(admin.TabularInline):
model = Video
class StoryAdmin(admin.ModelAdmin):
inlines = [VideoInline, ]
in this case every time you add or edit a Story, A video is added
regardless?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---