Re: [Django] #22030: AttributeError: 'CharField' object has no attribute 'swappable_setting'

2014-02-16 Thread Django
#22030: AttributeError: 'CharField' object has no attribute 'swappable_setting'
-+-
 Reporter:  bmispelon|Owner:  Baptiste
 Type:  Bug  |  Mispelon 
Component:  Migrations   |   Status:  closed
 Severity:  Release blocker  |  Version:
 Keywords:   |  1.7-alpha-1
Has patch:  1|   Resolution:  fixed
  Needs tests:  0| Triage Stage:  Ready for
Easy pickings:  0|  checkin
 |  Needs documentation:  0
 |  Patch needs improvement:  0
 |UI/UX:  0
-+-
Changes (by Baptiste Mispelon ):

 * owner:   => Baptiste Mispelon 
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"6873fbc3a081c98351ff25b4cdc42dbf3d7d"]:
 {{{
 #!CommitTicketReference repository=""
 revision="6873fbc3a081c98351ff25b4cdc42dbf3d7d"
 Fixed #22030 -- Don't assume that all fields have a swappable_setting
 attribute.
 }}}

-- 
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/067.dfe01a628555fb7e104f7dd982f5b13c%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #22030: AttributeError: 'CharField' object has no attribute 'swappable_setting'

2014-02-16 Thread Django
#22030: AttributeError: 'CharField' object has no attribute 'swappable_setting'
-+-
 Reporter:  bmispelon|Owner:  Baptiste
 Type:  Bug  |  Mispelon 
Component:  Migrations   |   Status:  closed
 Severity:  Release blocker  |  Version:
 Keywords:   |  1.7-alpha-1
Has patch:  1|   Resolution:  fixed
  Needs tests:  0| Triage Stage:  Ready for
Easy pickings:  0|  checkin
 |  Needs documentation:  0
 |  Patch needs improvement:  0
 |UI/UX:  0
-+-

Comment (by Andrew Godwin ):

 In [changeset:"3c547a423f5394d816b5a942570abd904f07bfba"]:
 {{{
 #!CommitTicketReference repository=""
 revision="3c547a423f5394d816b5a942570abd904f07bfba"
 Merge pull request #2270 from bmispelon/ticket-22030

 Fixed #22030 -- Don't assume that all fields have a swappable_setting
 at...
 }}}

-- 
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/067.1342f5a71f3af252003c0decedee6858%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #22030: AttributeError: 'CharField' object has no attribute 'swappable_setting'

2014-02-14 Thread Django
#22030: AttributeError: 'CharField' object has no attribute 'swappable_setting'
-+-
 Reporter:  bmispelon|Owner:
 Type:  Bug  |   Status:  new
Component:  Migrations   |  Version:
 Severity:  Release blocker  |  1.7-alpha-1
 Keywords:   |   Resolution:
Has patch:  1| Triage Stage:  Ready for
  Needs tests:  0|  checkin
Easy pickings:  0|  Needs documentation:  0
 |  Patch needs improvement:  0
 |UI/UX:  0
-+-
Changes (by timo):

 * stage:  Unreviewed => Ready for checkin


-- 
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/067.6ff99fac5343ffe384295f152b92a370%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #22030: AttributeError: 'CharField' object has no attribute 'swappable_setting'

2014-02-13 Thread Django
#22030: AttributeError: 'CharField' object has no attribute 'swappable_setting'
-+---
 Reporter:  bmispelon|Owner:
 Type:  Bug  |   Status:  new
Component:  Migrations   |  Version:  1.7-alpha-1
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Unreviewed
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+---
Changes (by bmispelon):

 * has_patch:  0 => 1


Comment:

 Failing test case and tentative fix there:
 https://github.com/django/django/pull/2270

-- 
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/067.3583343750aa308d490c38385655a4f4%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #22030: AttributeError: 'CharField' object has no attribute 'swappable_setting'

2014-02-12 Thread Django
#22030: AttributeError: 'CharField' object has no attribute 'swappable_setting'
-+---
 Reporter:  bmispelon|Owner:
 Type:  Bug  |   Status:  new
Component:  Migrations   |  Version:  1.7-alpha-1
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+---
Changes (by bmispelon):

 * version:  1.6 => 1.7-alpha-1


-- 
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/067.b3c5a2a5971ea178277252acbf49ea1d%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Django] #22030: AttributeError: 'CharField' object has no attribute 'swappable_setting'

2014-02-12 Thread Django
#22030: AttributeError: 'CharField' object has no attribute 'swappable_setting'
---+-
   Reporter:  bmispelon|  Owner:
   Type:  Bug  | Status:  new
  Component:  Migrations   |Version:  1.6
   Severity:  Release blocker  |   Keywords:
   Triage Stage:  Unreviewed   |  Has patch:  0
Needs documentation:  0|Needs tests:  0
Patch needs improvement:  0|  Easy pickings:  0
  UI/UX:  0|
---+-
 Here's how to reproduce:

 Create an app with a simple `models.py` (and put it in
 `settings.INSTALLED_APPS`):
 {{{#!python
 from django.db import models

 class Foo(models.Model):
 pass
 }}}

 Run `makemigrations` and then `migrate`.

 Then change the `Foo` model to be:
 {{{#!python
 class Foo(models.Model):
 foo = models.CharField(max_length=10, default='')
 }}}

 After that, running `manage.py makemigrations` breaks with the following
 traceback:
 {{{
 Traceback (most recent call last):
   File "manage.py", line 10, in 
 execute_from_command_line(sys.argv)
   File "./django/core/management/__init__.py", line 427, in
 execute_from_command_line
 utility.execute()
   File "./django/core/management/__init__.py", line 419, in execute
 self.fetch_command(subcommand).run_from_argv(self.argv)
   File "./django/core/management/base.py", line 287, in run_from_argv
 self.execute(*args, **options.__dict__)
   File "./django/core/management/base.py", line 336, in execute
 output = self.handle(*args, **options)
   File "./django/core/management/commands/makemigrations.py", line 80, in
 handle
 changes = autodetector.changes(graph=loader.graph,
 trim_to_apps=app_labels or None)
   File "./django/db/migrations/autodetector.py", line 33, in changes
 changes = self._detect_changes()
   File "./django/db/migrations/autodetector.py", line 236, in
 _detect_changes
 swappable_setting = new_apps.get_model(app_label,
 model_name)._meta.get_field_by_name(field_name)[0].swappable_setting
 AttributeError: 'CharField' object has no attribute 'swappable_setting'
 }}}

 Breakage was introduced in commit
 11c021336c8cb1c92be998f1a44c89a746275107.

-- 
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/052.f44a6f424c04cf1982da71ed62d1f29e%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.