-
Notifications
You must be signed in to change notification settings - Fork 17
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
Should RemoteForeignKey support NULL or empty value? #9
Comments
Can you show me what the field in the model looks like and what error you're getting? The code that produces the error would also help. It should work the way that Django normally does it, using blank=True etc. |
My Model example is below: when i created the Test model instance with only customer detail, i got the error as below:
I think we should take care on both get_prep_value and get_db_prep_value method in fields.py file for support null value Hope this information help us to fix the issue |
I want to have a model that contain RemoteForeignKey field and i want this field to be nullable. I got database initialize successfully but i also got error when i created an model instance via Django python shell.
The text was updated successfully, but these errors were encountered: