Skip to content

Instantly share code, notes, and snippets.

@loic
Last active January 4, 2016 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loic/8667955 to your computer and use it in GitHub Desktop.
Save loic/8667955 to your computer and use it in GitHub Desktop.
If I remember well, we discussed at some point with you and charettes about
removing the string version (as opposed to callable) of RunPython, if we do it,
it may be better to do it early on in the release cycle.
For some reason MyModel.objects.create() returned an object with pk=None,
I could confirm the object was created with a call to MyModel.objects.all().
I'm not totally sure if it's a bug or a side effect of the fake ORM.
I was bitten quite badly by the fact that custom Manager and custom save()
methods aren't called, https://github.com/django/django/blob/master/docs/topics/migrations.txt#L296-L297
probably should have a `.. warning::` box.
I don't understand https://github.com/django/django/blob/master/docs/topics/migrations.txt#L301-L305,
particularly the "so if you absolutely need access to these you can opt to move
them into a superclass." part.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment