Re: django 1.7 - help with change in "Save as new" behavior when related inlines are marked to be deleted

2014-11-17 Thread Alex Marandon
I've created a ticket for this issue: https://code.djangoproject.com/ticket/23857 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googl

Re: django 1.7 - help with change in "Save as new" behavior when related inlines are marked to be deleted

2014-11-14 Thread Jonathan Morgan
re: "There shouldn't be a delete box for unsaved items, right?" This is a special case - you are taking an existing record and "Save as new"-ing (or however you say that), so there are existing associated records that you are copying as well. But, in this case, I think

Re: django 1.7 - help with change in "Save as new" behavior when related inlines are marked to be deleted

2014-11-14 Thread Jonathan Morgan
Hello, Thanks for replying! Sorry for delayed response. I am not using custom forms or custom templates. It looks like, with "Save as new", django first makes a full copy of the base record and all the child records, including those that are marked for deletion, and then it su

Re: django 1.7 - help with change in "Save as new" behavior when related inlines are marked to be deleted

2014-11-14 Thread Alex Marandon
ter(Book) class BookAdmin(admin.ModelAdmin): inlines = [AuthorshipInline] save_as = True How to reproduce the problem using the admin : - create two authors - create a book with those two authors - edit the book - click the check box in the "Delete?" column for one of the auth

Re: django 1.7 - help with change in "Save as new" behavior when related inlines are marked to be deleted

2014-11-12 Thread Collin Anderson
Hello, That does seem odd. Are you using a custom form or custom template at all? There shouldn't be a delete box for unsaved items, right? Collin -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receivi

django 1.7 - help with change in "Save as new" behavior when related inlines are marked to be deleted

2014-11-07 Thread Jonathan Morgan
e users of this application need to make a new Event that is an annual update of an event that is put on once each year (the Nutcracker, for instance - multiple performances every December), they go to last year's Event in the admin, check the "delete" checkbox next to all but o

Solved: save as new in the Admin with 1:1 inlines causes IntegrityError

2014-10-17 Thread Mike Dewhirst
of an object (in this case "substance") with 1:1 relationships and click [Save as new] I get an integrity error[1]. This was working in Django 1.5.x. Before I put in the effort to roll back to 1.5 for proof I thought I'd check the docs and found this with a "Changed in Django

save as new in the Admin with 1:1 inlines causes IntegrityError

2014-10-14 Thread Mike Dewhirst
Using Django 1.6.7, in the Admin if I change the name of an object (in this case "substance") with 1:1 relationships and click [Save as new] I get an integrity error[1]. This was working in Django 1.5.x. Before I put in the effort to roll back to 1.5 for proof I thought I'd che

Re: save as

2013-03-26 Thread Larry Martell
. In the resulting page, >> include something to trigger the file download from the other view. > > OK, I've implemented this using ajax as the other Felipe suggested, > but the save as is not getting triggered on the response from the view > invoked by the ajax call. If I invoke

Re: save as

2013-03-26 Thread Larry Martell
;ve implemented this using ajax as the other Felipe suggested, but the save as is not getting triggered on the response from the view invoked by the ajax call. If I invoke the same view by cutting and pasting the URL generated by the ajax call into my browser's address bar the save as is i

Re: save as

2013-03-20 Thread Felipe Coelho
> > 2013/3/20 Larry Martell > I'm not outputting any PDF. I have a zip file I want to download to > the user's computer, and I also want my template rendered. That means you have should have two requests, possibly processed by two different views, which is what Felipe (the other one) is trying

Re: save as

2013-03-20 Thread Larry Martell
On Wed, Mar 20, 2013 at 3:01 PM, Felipe Prenholato wrote: > I mean, you output PDF. > It's a simple view that output PDF, this view is called via ajax after page > that show HTML loads. I'm not outputting any PDF. I have a zip file I want to download to the user's computer, and I also want my tem

Re: save as

2013-03-20 Thread Felipe Prenholato
I mean, you output PDF. It's a simple view that output PDF, this view is called via ajax after page that show HTML loads. Felipe 'chronos' Prenholato. Linux User nº 405489 Home page: http://devwithpassion.com | http://chronosbox.org/blog GitHub: http://github.com/chronossc/ | Twitter: http://twitt

Re: save as

2013-03-20 Thread Larry Martell
On Wed, Mar 20, 2013 at 2:27 PM, Felipe Prenholato wrote: > When page loads (document.ready), do a ajax call to a view that returns PDF > file. How is a PDF file involved here? > 2013/3/20 Larry Martell >> >> On Wed, Mar 20, 2013 at 5:34 AM, Tom Evans >> wrote: >> > On Wed, Mar 20, 2013 at 11

Re: save as

2013-03-20 Thread Felipe Prenholato
When page loads (document.ready), do a ajax call to a view that returns PDF file. Felipe 'chronos' Prenholato. Linux User nº 405489 Home page: http://devwithpassion.com | http://chronosbox.org/blog GitHub: http://github.com/chronossc/ | Twitter: http://twitter.com/chronossc 2013/3/20 Larry Marte

Re: save as

2013-03-20 Thread Larry Martell
On Wed, Mar 20, 2013 at 5:34 AM, Tom Evans wrote: > On Wed, Mar 20, 2013 at 11:28 AM, Larry Martell > wrote: >> Yes, I have convinced them to not require this. Now my issue is how to >> cause a file to be saved and to also render a template. When I return >> this: >> >> response = HttpRe

Re: save as

2013-03-20 Thread Tom Evans
On Wed, Mar 20, 2013 at 11:28 AM, Larry Martell wrote: > Yes, I have convinced them to not require this. Now my issue is how to > cause a file to be saved and to also render a template. When I return > this: > > response = HttpResponse('This is what I want to save') > response['Con

Re: save as

2013-03-20 Thread Larry Martell
ect.com/en/dev/howto/outputting-pdf/ which >> >> says to use the Content-disposition header to trigger the save as. >> >> I've done this, but I don't get a save as dialog box. The file is >> >> just downloaded to a download dir with the name I have provided. &

Re: save as

2013-03-20 Thread Branko Majic
ion header to trigger the save as. > >> I've done this, but I don't get a save as dialog box. The file is > >> just downloaded to a download dir with the name I have provided. > >> > >> Is there a way I can specify from my app what directory I want the &

Re: save as

2013-03-19 Thread Larry Martell
On Tue, Mar 19, 2013 at 7:07 PM, Tim Chase wrote: > On 2013-03-19 18:42, Larry Martell wrote: >> https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ which >> says to use the Content-disposition header to trigger the save as. >> I've done this, but I don'

Re: save as

2013-03-19 Thread Tim Chase
On 2013-03-19 18:42, Larry Martell wrote: > https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ which > says to use the Content-disposition header to trigger the save as. > I've done this, but I don't get a save as dialog box. The file is > just downloaded to a downlo

save as

2013-03-19 Thread Larry Martell
2 questions about saving a file on the user's computer. Is there a way to trigger a 'save as' dialog box? I've read https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ which says to use the Content-disposition header to trigger the save as. I've done this, but I d

Re: BaseGenericInlineFormSet failing on Save As New in admin

2010-05-28 Thread Stephen Sundell
wrote: > I'm using an InlineAdmin that is a generic relation, similar to django > tagging, with one of my model admins.  The problem is on a save as > new, if the original object has tags, then the initial form count, > gotten from the management form, isn't zero, even t

BaseGenericInlineFormSet failing on Save As New in admin

2010-05-28 Thread Stephen Sundell
I'm using an InlineAdmin that is a generic relation, similar to django tagging, with one of my model admins. The problem is on a save as new, if the original object has tags, then the initial form count, gotten from the management form, isn't zero, even though the new object will have

Re: Save as inline formset

2010-02-10 Thread Karen Tracey
; unique, I get an error as it supposed to be, but if I change the > question and try to save the poll I get this error: > invalid literal for int() with base 10: '' This looks like a bug somewhere along the line of processing that sequence (save-as that fails due to a validatio

Save as inline formset

2010-02-10 Thread oiad
Hi. If I have a couple of models like these: class Poll(models.Model): question = models.CharField(max_length=200, unique = True) pub_date = models.DateTimeField('date published') class Choice(models.Model): poll = models.ForeignKey(Poll) choice = models.CharField(max_length=200)

Re: Save as new and files

2009-11-29 Thread Pawel Pilitowski
; path making it to the database, yet not to the filesystem to copy the > file? Also, since you didn't mention anything about it, I would > remind you that a proper test would include trying to make a change to > the FileField. If you don't try to change it, yet push "Sav

Re: Save as new and files

2009-11-27 Thread Tim Valenta
roper test would include trying to make a change to the FileField. If you don't try to change it, yet push "Save as new", it won't be uploading the file again, so it won't be part of the list of fields that it's manipulating. And that might be where the problem lies

Re: Save as new and files

2009-11-27 Thread Pawel Pilitowski
Hey, Mainly I would like to know what the intended behavior of "save as new" is supposed to be, if it is supposed to copy the files, I will look further into why its not working for me. I was assuming that it would, and didn't find anything in the documentation to the con

Save as new and files

2009-10-24 Thread Pawel Pilitowski
Hey, Just wondering if "save as new" should also save any files (in this case images) along with everything else? Currently OtherInlines' information gets copied to the saved as new object, but any images associated with the original object are not. models.py: cla

Re: save as a new entry

2009-08-12 Thread Ali Rıza Keleş
On Wed, 2009-08-12 at 15:55 -0700, Daniel Roseman wrote: > On Aug 12, 10:40 pm, Ali Rıza KELEŞ wrote: > > In admin interface, in editing section of a model, I need a button to > > save as a new entry. There are four button at the end of the editing > > form. > > - Del

Re: save as a new entry

2009-08-12 Thread Daniel Roseman
On Aug 12, 10:40 pm, Ali Rıza KELEŞ wrote: > In admin interface, in editing section of a model, I need a button to > save as a new entry. There are four button at the end of the editing > form. > - Delete, > - Save and Add New, > - Save And Continue Editing, > - Save. &

save as a new entry

2009-08-12 Thread Ali Rıza KELEŞ
In admin interface, in editing section of a model, I need a button to save as a new entry. There are four button at the end of the editing form. - Delete, - Save and Add New, - Save And Continue Editing, - Save. I want to save the currently editing entry as a new entry. For example: entry is