Re: [Django] #8892: ForeignKey relation not saved as expected

2014-05-19 Thread Django
#8892: ForeignKey relation not saved as expected
-+-
 Reporter:  julien   |Owner:
 Type:  Bug  |  blacklwhite
Component:  Database layer   |   Status:  new
  (models, ORM)  |  Version:  1.0
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-

Comment (by altlist):

 I am a little confused why the original example isn't supported.

 {{{
 >>> a = ModelA(name='foo')
 >>> b = ModelB(name='bar')
 >>> b.a = a # Set relation *before* saving related object
 >>> a.save() # Save related object
 >>> a.pk
 123
 >>> b.a.pk
 123
 >>> b.save()
 >>> b = ModelB.objects.get(name='bar')
 >>> b.a
 
 }}}

 While I agree the docs suggests auto-increment keys can be determined
 upfront, the django model above shows a.pk is already known BEFORE I save
 b.  Hence I don't see why Django can't save object b correctly.

 Instead, I have to use the below suggested hack in the StackOverlow
 question.  Yet this seems cumbersome and unnecessary.

 {{{
 >>> b.a = b.a
 >>> b.save()
 }}}

-- 
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/064.9a70d84d4e8baef767d0c17192497f66%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #22646: MySQL dbshell command should respect the encryption flag

2014-05-19 Thread Django
#22646: MySQL dbshell command should respect the encryption flag
-+-
 Reporter:  zsoldosp |Owner:  zsoldosp
 Type:   |   Status:  new
  Cleanup/optimization   |  Version:  master
Component:  Database layer   |   Resolution:
  (models, ORM)  | Triage Stage:  Accepted
 Severity:  Normal   |  Needs documentation:  1
 Keywords:   |  Patch needs improvement:  1
Has patch:  1|UI/UX:  0
  Needs tests:  0|
Easy pickings:  0|
-+-

Comment (by syphar):

 Perhaps I'm missing the point.

 But the OP stated his options are (formatted):
 {{{
 {
 'OPTIONS': {
 'ssl': {
 'ca': ''
 }
 }
  }
 }}}

 which is exactly the same as he uses for the {{{--ssl-ca}}} command line
 argument:
 {{{
 cert = settings_dict['OPTIONS'].get('ssl', {}).get('ca')
 }}}

-- 
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/066.beae7376c57b9fc7f24d4d20bcf25c3a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #22368: Document how to use SERVICE_NAME with Oracle

2014-05-19 Thread Django
#22368: Document how to use SERVICE_NAME with Oracle
-+-
 Reporter:  michael.cherkasov@…  |Owner:  mardini
 Type:  New feature  |   Status:  assigned
Component:  Documentation|  Version:  1.6
 Severity:  Normal   |   Resolution:
 Keywords:  oracle, database,| Triage Stage:  Accepted
  db config  |  Needs documentation:  0
Has patch:  0|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-

Comment (by mardini):

 PR: https://github.com/django/django/pull/2683
 Thanks.

-- 
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/085.9e83f30aa029c0ecbf1c2f0763c1e56a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


[django/django] db2aac: [1.7.x] Updated Django makemessages process

2014-05-19 Thread GitHub
  Branch: refs/heads/stable/1.7.x
  Home:   https://github.com/django/django
  Commit: db2aacff9906c0f9c7c004173787ef8c292451f1
  
https://github.com/django/django/commit/db2aacff9906c0f9c7c004173787ef8c292451f1
  Author: Claude Paroz 
  Date:   2014-05-19 (Mon, 19 May 2014)

  Changed paths:
M django/core/management/commands/makemessages.py
M scripts/manage_translations.py

  Log Message:
  ---
  [1.7.x] Updated Django makemessages process

makemessages should now automatically distribute translatable
strings in the proper locale files, for Django too
(see 50a8ab7cd1e6).
Backport of 7999ed9b69 from master.


-- 
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/5379b34f24b90_198d7d9d44635b8%40hookshot-fe2-cp1-prd.iad.github.net.mail.
For more options, visit https://groups.google.com/d/optout.


[django/django] 7999ed: Updated Django makemessages process

2014-05-19 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/django/django
  Commit: 7999ed9b69b8f1a0aed035d56d9102ef7881643f
  
https://github.com/django/django/commit/7999ed9b69b8f1a0aed035d56d9102ef7881643f
  Author: Claude Paroz 
  Date:   2014-05-19 (Mon, 19 May 2014)

  Changed paths:
M django/core/management/commands/makemessages.py
M scripts/manage_translations.py

  Log Message:
  ---
  Updated Django makemessages process

makemessages should now automatically distribute translatable
strings in the proper locale files, for Django too
(see 50a8ab7cd1e6).


-- 
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/5379b31939b9a_54e41359d40153cf%40hookshot-fe1-cp1-prd.iad.github.net.mail.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #22652: create_superuser in contrib.auth.management expects "objects" manager in 1.7b4

2014-05-19 Thread Django
#22652: create_superuser in contrib.auth.management expects "objects" manager in
1.7b4
-+--
 Reporter:  alexdlaird   |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  contrib.auth |  Version:  1.7-beta-2
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+--
Changes (by claudep):

 * severity:  Normal => Release blocker
 * needs_better_patch:   => 0
 * component:  Core (URLs) => contrib.auth
 * needs_tests:   => 0
 * easy:  0 => 1
 * needs_docs:   => 0
 * stage:  Unreviewed => Accepted


Comment:

 I guess that simply replacing `objects` by `_default_manager` should solve
 this.

-- 
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/068.3ee22de132a6aaf5357e88cdbb298729%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


<    1   2