Skip to content
This repository has been archived by the owner on Oct 22, 2019. It is now read-only.

*** DoesNotExist: Post matching query does not exist. Lookup parameters were {'pk': 1} #99

Closed
avelino opened this issue May 9, 2013 · 11 comments

Comments

@avelino
Copy link

avelino commented May 9, 2013

(Pdb) mommy.make(Post)
*** DoesNotExist: Post matching query does not exist. Lookup parameters were {'pk': 1}
(Pdb) Post.objects.all()
[]
(Pdb) Article.objects.all()
[<Article: /article/3apmB5cyN0yDsyzZwmBhqhf0mDlsIA-BlNrdcJVul0zpiLIM-Y/HY1y3VDgxuERG5-a0Sys8RbzJaQpOl2hlKA9eZuGbF_S09o6mW>]
(Pdb)

Model Post extend model Article (not abstract).

mommy.make: Article created and not created Post

@vandersonmota
Copy link
Collaborator

Thanks for the report @avelino

I'll fix ASAP

@vandersonmota
Copy link
Collaborator

I saw you have used multiple inheritance, so i created a test scenario to reproduce it, but i got no error. Do your models have something different than 'Django' ?

@avelino
Copy link
Author

avelino commented May 11, 2013

Not, Model Post extend model Article (not abstract), Article extend multiple abstract models!

@vandersonmota
Copy link
Collaborator

Which Django version?

@avelino
Copy link
Author

avelino commented May 13, 2013

1.5.1

@avelino
Copy link
Author

avelino commented Jul 7, 2013

news on this case?

@vandersonmota
Copy link
Collaborator

I couldn't reproduce yet. I'll take another look soon.

@ellisonleao
Copy link
Contributor

👍 for resolving this :)

@vandersonmota
Copy link
Collaborator

I think the latest PR: #136 solves this problem. Try pulling from master now @avelino

@ellisonleao
Copy link
Contributor

Will test it! 👍

@avelino
Copy link
Author

avelino commented Nov 18, 2013

Tested and is working!

@avelino avelino closed this as completed Nov 18, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants