On Aug 18, 2:09 pm, tosh <[EMAIL PROTECTED]> wrote: > 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?
i just read my own message and realized i never actually asked my question, even though it's implied. How can i stop this behavior? before newforms i could specify a field as core and so the inline would not be saved but since newforms has been merged core no longer exists. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---