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: "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
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
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
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
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
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
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
. 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
;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
>
> 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
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
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
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
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
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
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
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.
&
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
&
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'
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
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
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
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
; 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
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)
; 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
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
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
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
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
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.
&
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
33 matches
Mail list logo