Re: [Django] #22874: Swappable dependency breaks if swappable model not in first migration of its app

2014-06-20 Thread Django
#22874: Swappable dependency breaks if swappable model not in first migration of
its app
-+
 Reporter:  melinath |Owner:  nobody
 Type:  Bug  |   Status:  closed
Component:  Migrations   |  Version:  master
 Severity:  Release blocker  |   Resolution:  fixed
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+

Comment (by Andrew Godwin ):

 In [changeset:"44b00af9bc3e6e8a561103aa5ca564995ca3c594"]:
 {{{
 #!CommitTicketReference repository=""
 revision="44b00af9bc3e6e8a561103aa5ca564995ca3c594"
 [1.7.x] Fixed #22874: Document that AUTH_USER_MODEL must be in first
 migration
 }}}

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


Re: [Django] #22874: Swappable dependency breaks if swappable model not in first migration of its app

2014-06-20 Thread Django
#22874: Swappable dependency breaks if swappable model not in first migration of
its app
-+
 Reporter:  melinath |Owner:  nobody
 Type:  Bug  |   Status:  closed
Component:  Migrations   |  Version:  master
 Severity:  Release blocker  |   Resolution:  fixed
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+
Changes (by Andrew Godwin ):

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


Comment:

 In [changeset:"08221d1b5c1eec782c792818a2aa4a74ca7f1fcb"]:
 {{{
 #!CommitTicketReference repository=""
 revision="08221d1b5c1eec782c792818a2aa4a74ca7f1fcb"
 Fixed #22874: Document that AUTH_USER_MODEL must be in first migration
 }}}

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


Re: [Django] #22874: Swappable dependency breaks if swappable model not in first migration of its app

2014-06-20 Thread Django
#22874: Swappable dependency breaks if swappable model not in first migration of
its app
-+
 Reporter:  melinath |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Migrations   |  Version:  master
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+

Comment (by andrewgodwin):

 One of the caveats we had to do to be able to support swappable models was
 that they MUST be in the first migration of their respective app (as
 you've seen, otherwise dependency problems occur). There's literally no
 way to fix this, as it's logically impossible to construct a dependency
 graph otherwise with our model.

 I'll add documentation highlighting this next to the existing warning
 about dependencies from unmigrated apps.

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


Re: [Django] #22874: Swappable dependency breaks if swappable model not in first migration of its app

2014-06-19 Thread Django
#22874: Swappable dependency breaks if swappable model not in first migration of
its app
-+
 Reporter:  melinath |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Migrations   |  Version:  master
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+
Changes (by SmileyChris):

 * severity:  Normal => Release blocker
 * stage:  Unreviewed => Accepted


Comment:

 This is a valid bug, not sure if it's considered release blocker - will
 bump up and let andrew decide.

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


Re: [Django] #22874: Swappable dependency breaks if swappable model not in first migration of its app

2014-06-19 Thread Django
#22874: Swappable dependency breaks if swappable model not in first migration of
its app
+--
 Reporter:  melinath|Owner:  nobody
 Type:  Bug |   Status:  new
Component:  Migrations  |  Version:  master
 Severity:  Normal  |   Resolution:
 Keywords:  | Triage Stage:  Unreviewed
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+--

Comment (by SmileyChris):

 Reverse dependencies are possible, just not documented - use `run_before`
 in the same way you use the `dependencies` 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/066.f5314aff2de666a8584e5417929524c9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #22874: Swappable dependency breaks if swappable model not in first migration of its app

2014-06-19 Thread Django
#22874: Swappable dependency breaks if swappable model not in first migration of
its app
+--
 Reporter:  melinath|Owner:  nobody
 Type:  Bug |   Status:  new
Component:  Migrations  |  Version:  master
 Severity:  Normal  |   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 SmileyChris):

 * version:  1.7-beta-2 => master


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


Re: [Django] #22874: Swappable dependency breaks if swappable model not in first migration of its app (was: Swappable dependency not working)

2014-06-19 Thread Django
#22874: Swappable dependency breaks if swappable model not in first migration of
its app
+--
 Reporter:  melinath|Owner:  nobody
 Type:  Bug |   Status:  new
Component:  Migrations  |  Version:  1.7-beta-2
 Severity:  Normal  |   Resolution:
 Keywords:  | Triage Stage:  Unreviewed
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+--

Comment (by melinath):

 It seems like this wasn't working because swappable dependency
 automatically goes to the first migration in the swapped model's app - and
 if the swappable model isn't migrated into existence in the first
 migration, the swappable model dependency breaks.

 I don't think this would be a serious problem in the future - brambling
 has some slightly older 1.7 migrations, from back when it would generate a
 million of them. I believe it's now consolidated down to one initial
 migration, so most people probably won't run into this.

 Workaround was to add a dependency to the last migration in the swappable
 model's app. Would that work for the swappable model dependency behavior?
 (I could also imagine situations where a swappable model is switched out
 for a different one over the course of the app.)

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