Answers for "how to join models from another app"

0

how to join models from another app

from django.db import models
from geography.models import ZipCode

class Restaurant(models.Model):
    # ...
    zip_code = models.ForeignKey(
        ZipCode,
        on_delete=models.SET_NULL,
        blank=True,
        null=True,
    )
Posted by: Guest on September-12-2021

Code answers related to "how to join models from another app"

Python Answers by Framework

Browse Popular Code Answers by Language