Re: [Django] #14642: save_as=True and generic inline in admin gives IndexError

2017-12-30 Thread Django
#14642: save_as=True and generic inline in admin gives IndexError
-+-
 Reporter:  simon@…  |Owner:  nobody
 Type:  Bug  |   Status:  closed
Component:   |  Version:  1.4
  contrib.contenttypes   |
 Severity:  Normal   |   Resolution:  fixed
 Keywords:  save_as generic  | Triage Stage:  Accepted
  inline |
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Tim Graham ):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"9bc4d90d1a8c4d1dee54115a0995a7b6fca8635b" 9bc4d90]:
 {{{
 #!CommitTicketReference repository=""
 revision="9bc4d90d1a8c4d1dee54115a0995a7b6fca8635b"
 Fixed #14642 -- Fixed generic inline formsets crash when using
 save_as_new=True.
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.afc0a32fc7a787f9bdaa84dc1d0740bc%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #14642: save_as=True and generic inline in admin gives IndexError

2017-12-17 Thread Django
#14642: save_as=True and generic inline in admin gives IndexError
-+-
 Reporter:  simon@…  |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:   |  Version:  1.4
  contrib.contenttypes   |
 Severity:  Normal   |   Resolution:
 Keywords:  save_as generic  | Triage Stage:  Accepted
  inline |
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Tomer Chachamu):

 * needs_better_patch:  1 => 0


Comment:

 It appears to have been a random failure.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.83abac5621909d0a15d22e3095b545e7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #14642: save_as=True and generic inline in admin gives IndexError

2017-12-17 Thread Django
#14642: save_as=True and generic inline in admin gives IndexError
-+-
 Reporter:  simon@…  |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:   |  Version:  1.4
  contrib.contenttypes   |
 Severity:  Normal   |   Resolution:
 Keywords:  save_as generic  | Triage Stage:  Accepted
  inline |
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Tim Martin):

 * needs_better_patch:  0 => 1


Comment:

 The CI build is failing on Windows at the moment. Unfortunately the build
 has expired so I can't see any more information than that, but without any
 further information I'm assuming this is a problem with the patch.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.dce8395f06e2156766e453d6f5f2d875%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #14642: save_as=True and generic inline in admin gives IndexError

2017-11-29 Thread Django
#14642: save_as=True and generic inline in admin gives IndexError
-+-
 Reporter:  simon@…  |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:   |  Version:  1.4
  contrib.contenttypes   |
 Severity:  Normal   |   Resolution:
 Keywords:  save_as generic  | Triage Stage:  Accepted
  inline |
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Tomer Chachamu):

 * needs_better_patch:  1 => 0


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.aed77188cc2d0b2fb8b24642e8dcd5bf%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #14642: save_as=True and generic inline in admin gives IndexError

2017-11-27 Thread Django
#14642: save_as=True and generic inline in admin gives IndexError
-+-
 Reporter:  simon@…  |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:   |  Version:  1.4
  contrib.contenttypes   |
 Severity:  Normal   |   Resolution:
 Keywords:  save_as generic  | Triage Stage:  Accepted
  inline |
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Tim Graham):

 * needs_better_patch:  0 => 1
 * has_patch:  0 => 1
 * component:  Forms => contrib.contenttypes


Comment:

 [https://github.com/django/django/pull/9385 PR] (from duplicate ticket
 #28840) with a couple comments for improvement.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.8460ef6212dbe64d2eef4faea4cca836%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #14642: save_as=True and generic inline in admin gives IndexError

2016-07-16 Thread Django
#14642: save_as=True and generic inline in admin gives IndexError
-+-
 Reporter:  simon@…  |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Forms|  Version:  1.4
 Severity:  Normal   |   Resolution:
 Keywords:  save_as generic  | Triage Stage:  Accepted
  inline |
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by timgraham):

 #26901 is a duplicate that proposes a (perhaps partial) patch.

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.2aaa0afc937d2d811bf99f4032f6780c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #14642: save_as=True and generic inline in admin gives IndexError

2013-10-10 Thread Django
#14642: save_as=True and generic inline in admin gives IndexError
-+-
 Reporter:  simon@…  |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Forms|  Version:  1.4
 Severity:  Normal   |   Resolution:
 Keywords:  save_as generic  | Triage Stage:  Accepted
  inline |  Needs documentation:  0
Has patch:  0|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-

Comment (by sehmaschine):

 anyone working on this one? the last mentioned patch does not solve it for
 me.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.72c3a53e5563e583fe639da3bb51382c%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #14642: save_as=True and generic inline in admin gives IndexError

2013-10-10 Thread Django
#14642: save_as=True and generic inline in admin gives IndexError
-+-
 Reporter:  simon@…  |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Forms|  Version:  1.4
 Severity:  Normal   |   Resolution:
 Keywords:  save_as generic  | Triage Stage:  Accepted
  inline |  Needs documentation:  0
Has patch:  0|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-
Changes (by sehmaschine):

 * cc: sehmaschine (added)


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.5d5596eebf2b8bcfdbedbe03b1c2e4a0%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #14642: save_as=True and generic inline in admin gives IndexError

2012-11-30 Thread Django
#14642: save_as=True and generic inline in admin gives IndexError
-+-
 Reporter:  simon@…  |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Forms|  Version:  1.4
 Severity:  Normal   |   Resolution:
 Keywords:  save_as generic  | Triage Stage:  Accepted
  inline |  Needs documentation:  0
Has patch:  0|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-

Comment (by andrschwartz@…):

 I think the problem is in wrong initial forms count calculation. So i've
 changed method

 {{{
 def initial_form_count(self):
 """Returns the number of forms that are required in this
 FormSet."""
 if self.is_bound:
 return self.management_form.cleaned_data[INITIAL_FORM_COUNT]
 else:
 # Use the length of the inital data if it's there, 0
 otherwise.
 initial_forms = self.initial and len(self.initial) or 0
 if initial_forms > self.max_num >= 0:
 initial_forms = self.max_num
 return initial_forms
 }}}

 to ignore posted -INITIAL-FORMS if "Save as New" used:


 {{{
 def initial_form_count(self):
 """Returns the number of forms that are required in this
 FormSet."""
 if self.is_bound and not self.save_as_new:
 return self.management_form.cleaned_data[INITIAL_FORM_COUNT]
 else:
 # Use the length of the inital data if it's there, 0
 otherwise.
 initial_forms = self.initial and len(self.initial) or 0
 if initial_forms > self.max_num >= 0:
 initial_forms = self.max_num
 return initial_forms
 }}}

 Works good for me. But i'm not sure this fix will work correctly in all
 situations.
 See also BaseInlineFormSet initial_form_count method.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #14642: save_as=True and generic inline in admin gives IndexError

2012-04-24 Thread Django
#14642: save_as=True and generic inline in admin gives IndexError
-+-
 Reporter:  simon@…  |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Forms|  Version:  1.4
 Severity:  Normal   |   Resolution:
 Keywords:  save_as generic  | Triage Stage:  Accepted
  inline |  Needs documentation:  0
Has patch:  0|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-
Changes (by lorin):

 * version:  1.3 => 1.4


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14642: save_as=True and generic inline in admin gives IndexError

2012-04-24 Thread Django
#14642: save_as=True and generic inline in admin gives IndexError
-+-
 Reporter:  simon@…  |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Forms|  Version:  1.3
 Severity:  Normal   |   Resolution:
 Keywords:  save_as generic  | Triage Stage:  Accepted
  inline |  Needs documentation:  0
Has patch:  0|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-
Changes (by lorin):

 * cc: lorin (added)


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14642: save_as=True and generic inline in admin gives IndexError

2012-04-24 Thread Django
#14642: save_as=True and generic inline in admin gives IndexError
-+-
 Reporter:  simon@…  |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Forms|  Version:  1.3
 Severity:  Normal   |   Resolution:
 Keywords:  save_as generic  | Triage Stage:  Accepted
  inline |  Needs documentation:  0
Has patch:  0|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-
Changes (by anonymous):

 * version:  1.2 => 1.3


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14642: save_as=True and generic inline in admin gives IndexError

2011-10-19 Thread Django
#14642: save_as=True and generic inline in admin gives IndexError
-+-
 Reporter:  simon@…  |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Forms|  Version:  1.2
 Severity:  Normal   |   Resolution:
 Keywords:  save_as generic  | Triage Stage:  Accepted
  inline |  Needs documentation:  0
Has patch:  0|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-
Changes (by patrickk):

 * cc: patrickk (added)
 * ui_ux:   => 0
 * easy:   => 0


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14642: save_as=True and generic inline in admin gives IndexError

2011-03-26 Thread Django
#14642: save_as=True and generic inline in admin gives IndexError
+--
   Reporter:  simon@…   |Owner:  nobody
 Status:  new   |Milestone:
  Component:  Forms |  Version:  1.2
 Resolution:| Keywords:  save_as generic inline
   Triage Stage:  Accepted  |Has patch:  0
Needs documentation:  0 |  Needs tests:  0
Patch needs improvement:  0 |
+--
Changes (by brillgen):

 * milestone:  1.3 =>


Comment:

 I'm removing the milestone as 1.3 since 1.3 has come and gone. the bug
 owner (if any) can plan and update accordingly.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14642: save_as=True and generic inline in admin gives IndexError

2011-03-10 Thread Django
#14642: save_as=True and generic inline in admin gives IndexError
+--
   Reporter:  simon@…   |Owner:  nobody
 Status:  new   |Milestone:  1.3
  Component:  Forms |  Version:  1.2
 Resolution:| Keywords:  save_as generic inline
   Triage Stage:  Accepted  |Has patch:  0
Needs documentation:  0 |  Needs tests:  0
Patch needs improvement:  0 |
+--

Comment (by russellm):

 @brillgen - No, it isn't. 1.3 has been a release candidate for about a
 week, and will be finalized early next week. At this point,the only bugs
 being fixed are those that can be shown to cause catastrophic data loss,
 are regressions from 1.2, or are major problems with features added in the
 1.3 cycle.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14642: save_as=True and generic inline in admin gives IndexError

2011-03-10 Thread Django
#14642: save_as=True and generic inline in admin gives IndexError
+--
   Reporter:  simon@…   |Owner:  nobody
 Status:  new   |Milestone:  1.3
  Component:  Forms |  Version:  1.2
 Resolution:| Keywords:  save_as generic inline
   Triage Stage:  Accepted  |Has patch:  0
Needs documentation:  0 |  Needs tests:  0
Patch needs improvement:  0 |
+--

Comment (by brillgen):

 The issue can be confirmed as occurring as is with exactly the steps
 described by the original reporter and occurs at every instance not
 intermittently.
 I have been able to reproduce this with a fresh Django 1.2 install with no
 other models.

 Is this at all on the radar for 1.3?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14642: save_as=True and generic inline in admin gives IndexError (was: IndexError: list index out of range caused by inline formsets)

2011-03-09 Thread Django
#14642: save_as=True and generic inline in admin gives IndexError
+--
   Reporter:  simon@…   |Owner:  nobody
 Status:  new   |Milestone:  1.3
  Component:  Forms |  Version:  1.2
 Resolution:| Keywords:  save_as generic inline
   Triage Stage:  Accepted  |Has patch:  0
Needs documentation:  0 |  Needs tests:  0
Patch needs improvement:  0 |
+--

Comment (by poswald):

 It seems that this issue is reproducible as is. I've therefore created a
 new ticket (#15574) for tracking the issue I was seeing and reverting the
 subject of this one. I'll look into creating a test case for this issue as
 well.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14642: save_as=True and generic inline in admin gives IndexError

2011-01-18 Thread Django
#14642: save_as=True and generic inline in admin gives IndexError
--+-
  Reporter:  si...@hostit.se  | Owner:  nobody
Status:  new  | Milestone:  1.3   
 Component:  Forms|   Version:  1.2   
Resolution:   |  Keywords:  save_as generic inline
 Stage:  Accepted | Has_patch:  0 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  0|  
--+-
Comment (by Loststylus):

 Btw, yes, it's very hard to reproduce :(

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14642: save_as=True and generic inline in admin gives IndexError

2011-01-17 Thread Django
#14642: save_as=True and generic inline in admin gives IndexError
--+-
  Reporter:  si...@hostit.se  | Owner:  nobody
Status:  new  | Milestone:  1.3   
 Component:  Forms|   Version:  1.2   
Resolution:   |  Keywords:  save_as generic inline
 Stage:  Accepted | Has_patch:  0 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  0|  
--+-
Comment (by hcarvalhoalves):

 I confirm the same happens when using ModelFormSets in Django 1.2 and
 memcached backend (I don't know if it's relevant). The traceback looks the
 same as the posted above. Sometimes, but only sometimes, it'll throw an
 IndexError when saving a formset. This bug was proved hard to reproduce
 and I only have it in production.

 Maybe we should change the ticket summary to "ModelFormSet throws
 IndexError"?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14642: save_as=True and generic inline in admin gives IndexError

2011-01-17 Thread Django
#14642: save_as=True and generic inline in admin gives IndexError
--+-
  Reporter:  si...@hostit.se  | Owner:  nobody
Status:  new  | Milestone:  1.3   
 Component:  Forms|   Version:  1.2   
Resolution:   |  Keywords:  save_as generic inline
 Stage:  Accepted | Has_patch:  0 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  0|  
--+-
Comment (by Loststylus):

 Are there any workarounds, yet?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14642: save_as=True and generic inline in admin gives IndexError

2011-01-17 Thread Django
#14642: save_as=True and generic inline in admin gives IndexError
--+-
  Reporter:  si...@hostit.se  | Owner:  nobody
Status:  new  | Milestone:  1.3   
 Component:  Forms|   Version:  1.2   
Resolution:   |  Keywords:  save_as generic inline
 Stage:  Accepted | Has_patch:  0 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  0|  
--+-
Comment (by Loststylus):

 I confirm, that i experience this problem, too, but I experience it not in
 the admin site, but with my application, whre I use ModelFormsets

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14642: save_as=True and generic inline in admin gives IndexError

2010-12-30 Thread Django
#14642: save_as=True and generic inline in admin gives IndexError
--+-
  Reporter:  si...@hostit.se  | Owner:  nobody
Status:  new  | Milestone:  1.3   
 Component:  Forms|   Version:  1.2   
Resolution:   |  Keywords:  save_as generic inline
 Stage:  Accepted | Has_patch:  0 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  0|  
--+-
Changes (by brillgen):

 * cc: brillgen (added)

Comment:

 I have the same issue and I can confirm that the these two conditions will
 reproduce the bug in Django 1.0 as well as 1.2. Has any progress been made
 since?
 JohnRandom, do you need help with this to meet the 1.3 deadline?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14642: save_as=True and generic inline in admin gives IndexError

2010-11-13 Thread Django
#14642: save_as=True and generic inline in admin gives IndexError
--+-
  Reporter:  si...@hostit.se  | Owner:  nobody
Status:  new  | Milestone:  1.3   
 Component:  Forms|   Version:  1.2   
Resolution:   |  Keywords:  save_as generic inline
 Stage:  Accepted | Has_patch:  0 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  0|  
--+-
Changes (by JohnRandom):

  * owner:  JohnRandom => nobody
  * component:  django.contrib.admin => Forms

Comment:

 I was able to reproduce the bug, but I'm not really sure that the
 classification 'django.contrib.admin' is the right one. I think it is more
 likely found in 'django.forms' or 'django.contrib.contenttypes'. I found
 that the new class is created but the transaction is then rolled back for
 (to me) unknown reason. I suspect that the children for the generic
 relation can't be found.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14642: save_as=True and generic inline in admin gives IndexError

2010-11-13 Thread Django
#14642: save_as=True and generic inline in admin gives IndexError
---+
  Reporter:  si...@hostit.se   | Owner:  JohnRandom 
   
Status:  new   | Milestone:  1.3
   
 Component:  django.contrib.admin  |   Version:  1.2
   
Resolution:|  Keywords:  save_as generic 
inline
 Stage:  Accepted  | Has_patch:  0  
   
Needs_docs:  0 |   Needs_tests:  0  
   
Needs_better_patch:  0 |  
---+
Changes (by JohnRandom):

  * owner:  nobody => JohnRandom

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14642: save_as=True and generic inline in admin gives IndexError

2010-11-10 Thread Django
#14642: save_as=True and generic inline in admin gives IndexError
---+
  Reporter:  si...@hostit.se   | Owner:  nobody 
   
Status:  new   | Milestone:  1.3
   
 Component:  django.contrib.admin  |   Version:  1.2
   
Resolution:|  Keywords:  save_as generic 
inline
 Stage:  Accepted  | Has_patch:  0  
   
Needs_docs:  0 |   Needs_tests:  0  
   
Needs_better_patch:  0 |  
---+
Changes (by cmarrer):

  * needs_better_patch:  => 0
  * needs_docs:  => 0
  * stage:  Unreviewed => Accepted
  * needs_tests:  => 0
  * milestone:  => 1.3

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



[Django] #14642: save_as=True and generic inline in admin gives IndexError

2010-11-08 Thread Django
#14642: save_as=True and generic inline in admin gives IndexError
+---
 Reporter:  si...@hostit.se |   Owner:  nobody
   Status:  new |   Milestone:
Component:  django.contrib.admin| Version:  1.2   
 Keywords:  save_as generic inline  |   Stage:  Unreviewed
Has_patch:  0   |  
+---
 I have a model with a generic relation to another as below.

 {{{
 # models.py
 class GenericObj(models.Model):
 content_type = models.ForeignKey(ContentType)
 object_id = models.PositiveIntegerField()
 content_object = generic.GenericForeignKey()

 text = models.CharField(max_length=50)


 class ToObj(models.Model):
 text = models.CharField(max_length=50)

 obj_set = generic.GenericRelation(GenericObj)
 }}}
 In admin i have a form with an generic inline and save_as=True as below
 {{{
 # admin.py
 class GenObjInline(generic.GenericTabularInline):
 model = GenericObj

 class ToObjAdmin(admin.ModelAdmin):
 inlines = [GenObjInline, ]
 save_as = True

 admin.site.register(ToObj, ToObjAdmin)
 }}}

 when i try to save as new in admin, i get an IndexError, list index out of
 range.

 Traceback:
 {{{
 Environment:

 Request Method: POST
 Request URL: http://127.0.0.1:8000/admin/tsave/toobj/1/
 Django Version: 1.2.3
 Python Version: 2.6.4
 Installed Applications:
 ['django.contrib.auth',
  'django.contrib.contenttypes',
  'django.contrib.sessions',
  'django.contrib.sites',
  'django.contrib.messages',
  'tsave',
  'django.contrib.admin']
 Installed Middleware:
 ('django.middleware.common.CommonMiddleware',
  'django.contrib.sessions.middleware.SessionMiddleware',
  'django.middleware.csrf.CsrfViewMiddleware',
  'django.contrib.auth.middleware.AuthenticationMiddleware',
  'django.contrib.messages.middleware.MessageMiddleware')


 Traceback:
 File "/media/filesrv/simon/hostit/envs/django1.2/lib/python2.6/site-
 packages/django/core/handlers/base.py" in get_response
   100. response = callback(request, *callback_args,
 **callback_kwargs)
 File "/media/filesrv/simon/hostit/envs/django1.2/lib/python2.6/site-
 packages/django/contrib/admin/options.py" in wrapper
   239. return self.admin_site.admin_view(view)(*args,
 **kwargs)
 File "/media/filesrv/simon/hostit/envs/django1.2/lib/python2.6/site-
 packages/django/utils/decorators.py" in _wrapped_view
   76. response = view_func(request, *args, **kwargs)
 File "/media/filesrv/simon/hostit/envs/django1.2/lib/python2.6/site-
 packages/django/views/decorators/cache.py" in _wrapped_view_func
   69. response = view_func(request, *args, **kwargs)
 File "/media/filesrv/simon/hostit/envs/django1.2/lib/python2.6/site-
 packages/django/contrib/admin/sites.py" in inner
   190. return view(request, *args, **kwargs)
 File "/media/filesrv/simon/hostit/envs/django1.2/lib/python2.6/site-
 packages/django/utils/decorators.py" in _wrapper
   21. return decorator(bound_func)(*args, **kwargs)
 File "/media/filesrv/simon/hostit/envs/django1.2/lib/python2.6/site-
 packages/django/utils/decorators.py" in _wrapped_view
   76. response = view_func(request, *args, **kwargs)
 File "/media/filesrv/simon/hostit/envs/django1.2/lib/python2.6/site-
 packages/django/utils/decorators.py" in bound_func
   17. return func(self, *args2, **kwargs2)
 File "/media/filesrv/simon/hostit/envs/django1.2/lib/python2.6/site-
 packages/django/db/transaction.py" in _commit_on_success
   299. res = func(*args, **kw)
 File "/media/filesrv/simon/hostit/envs/django1.2/lib/python2.6/site-
 packages/django/contrib/admin/options.py" in change_view
   869. return self.add_view(request, form_url='../add/')
 File "/media/filesrv/simon/hostit/envs/django1.2/lib/python2.6/site-
 packages/django/utils/decorators.py" in _wrapper
   21. return decorator(bound_func)(*args, **kwargs)
 File "/media/filesrv/simon/hostit/envs/django1.2/lib/python2.6/site-
 packages/django/utils/decorators.py" in _wrapped_view
   76. response = view_func(request, *args, **kwargs)
 File "/media/filesrv/simon/hostit/envs/django1.2/lib/python2.6/site-
 packages/django/utils/decorators.py" in bound_func
   17. return func(self, *args2, **kwargs2)
 File "/media/filesrv/simon/hostit/envs/django1.2/lib/python2.6/site-
 packages/django/db/transaction.py" in _commit_on_success
   299. res = func(*args, **kw)
 File "/media/filesrv/simon/hostit/envs/django1.2/lib/python2.6/site-
 packages/django/contrib/admin/options.py" in add_view
   792.   prefix=prefix,
 queryset=inline.queryset(request))
 File "/media/filesrv/simon/hostit/envs/django1.2/lib/python2.6/site-