Thank you for your kind reply @naveenk...@gmail.com.
Here is the way that we found to solve this issue.
Company App > models.py
```python3
country = models.ForeignKey('login.Country',
on_delete=models.SET_NULL,
null=True,
blank=False)
```
The Project structure was quite large so did not find appropriate to share all of that here.
Therefore shared a snippet.
Regards
Pradyum
From: "django-res...@googlegroups.com" <django-res...@googlegroups.com>
Reply to: "django-res...@googlegroups.com" <django-res...@googlegroups.com>
Date: Thursday, 24 September 2020 at 3:16 PM
To: Digest recipients <django-res...@googlegroups.com>
Subject: Digest for django-res...@googlegroups.com - 3 updates in 2 topics
· Attribute Error in Django model Foreign Key - 2 Updates
· Create an invitation link using django rest framework? - 1 Update
|
Pradyum Gupta <pradyum...@gmail.com>: Sep 24 09:00AM
|
|
naveen Kumar <naveenk...@gmail.com>: Sep 24 03:07PM +0530
|
|
Pradyum Gupta <prad...@gmail.com>: Sep 24 01:18PM +0530
|
|
You received this digest because you're subscribed to updates for this group. You can change your settings on the
group membership page. |