Re: [Django] #13706: dbrouter uses wrong database on many2many addition

2010-11-13 Thread Django
#13706: dbrouter uses wrong database on many2many addition
---+
  Reporter:  cheerios  | Owner:  nobody
Status:  closed| Milestone:
 Component:  Database layer (models, ORM)  |   Version:  1.2   
Resolution:  worksforme|  Keywords:
 Stage:  Unreviewed| Has_patch:  0 
Needs_docs:  0 |   Needs_tests:  0 
Needs_better_patch:  0 |  
---+
Changes (by ramiro):

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

Comment:

 Can't reproduce what's been reported here with trunk as of now. Find
 attached the patch to our regressiontests/multiple_database tests
 implementing what I understand from the ticket description.

 Please reopen only if you can provide a modified patch that shows your use
 case and error.

-- 
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] #13706: dbrouter uses wrong database on many2many addition

2010-09-11 Thread Django
#13706: dbrouter uses wrong database on many2many addition
---+
  Reporter:  cheerios  | Owner:  nobody
Status:  new   | Milestone:
 Component:  Database layer (models, ORM)  |   Version:  1.2   
Resolution:|  Keywords:
 Stage:  Unreviewed| Has_patch:  0 
Needs_docs:  0 |   Needs_tests:  0 
Needs_better_patch:  0 |  
---+
Changes (by tobias):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 Please provide a more complete example.

-- 
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] #13706: dbrouter uses wrong database on many2many addition

2010-06-06 Thread Django
#13706: dbrouter uses wrong database on many2many addition
--+-
 Reporter:  cheerios  |   Owner:  nobody
   Status:  new   |   Milestone:
Component:  Database layer (models, ORM)  | Version:  1.2   
 Keywords:|   Stage:  Unreviewed
Has_patch:  0 |  
--+-
 {{{
 DATABASE_ROUTERS = ['dbrouter.BRouter', 'dbrouter.ARouter',]

 (form submission)
 item.save() # B
 paper = Paper()
 paper.save() # B
 item.attachments.add(paper)  # writes to A, fails
 }}}

 BRouter routes traffic to database B, Arouter falls back on 'default'
 database.
 All models read/write fine (on both databases), but adding a many2many
 relation for a table that saves to B (with all FKs in B) won't work unless
 Arouter's (!) db_to_write() does assert/print model._meta.app_label

-- 
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.