Can foreign key be null?



Can foreign key be null?..

Answer / Neha Shrivastava

By default, a foreign key in Django cannot have a NULL value. However, you can specify `null=True` when defining the field to allow for NULL values.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Django Python Interview Questions

What is g in flask?

1 Answers  


Is there a django 2?

1 Answers  


Explain the architecture of Django?

1 Answers  


What is a serializer django?

1 Answers  


What is slug in django?

1 Answers  


How to view and filter items from the database?

1 Answers  


What are template tags in django?

1 Answers  


What is the architecture of django?

1 Answers  


Is python django easy to learn?

1 Answers  


What is meta class in ooad?

1 Answers  


What happens if you put an else statement after block?

1 Answers  


Does django need a web server?

1 Answers  


Categories