-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AutoOneToOne doesn't work #51
Comments
It is not working for me either.
I created an |
Hmm, can anyone see what the problem is, or submit a PR to fix it? |
@pymarco I'm just seing this but
|
@arthurio thanks, its worked for me on Django 1.10, python 2.7 |
It is not working for me either. django 1.9.7 |
@littlehome-eugene We are going to need more details than that to figure out what is not working for you... |
Same here. Django 1.11.2, annoying 0.10.3. Under some circumstances objects are being created, but what those are I haven't figured out yet. |
Not working for me either. |
@eduardocesar @moorchegue I don't see how we can possibly help you without more details... Did you read my previous comment ? |
@arthurio I've tried to access the related object after the creation of the primary object and did not appear. With some investigation, it seems that it was a boolean field in the related object that was preventing it's creation. |
Doesn't work for me either:
Creating a Patient object does not automatically create a PatientRecord. I've tried creating via the admin as well as via the shell. Doesn't seem to work either way. Django==2.0 |
@arthurio Thanks, accessing the related object creates it. http://www.techinfected.net/2018/02/automatically-create-onetoonefield-in-django.html |
Is primary_key=True required for this to work? My model is defined as such:
And yet when I access it, I get a None:
|
@albrnick You want to put the class CrmCategoryStatsList(models.Model):
category = AutoOneToOneField(...) |
System
OS: Linux
Python: 3.5.1
Django: 1.9.5
Annoying: 0.9.0
Example
From README.md.
Description
I have try your example but it doesnt't work. I have no error messages. The field works lika a regular OneToOne field.
The text was updated successfully, but these errors were encountered: