On Fri, May 13, 2022 at 09:27:48AM -0700, 'dtdave' via Django users wrote:
> I have the following code:
> from django.conf import settings
> from django.db import models
>
> class AccountManager(models.Model):
> account_manager = models.ForeignKey(
> settings.AUTH_USER_MODEL, on_delete
I have the following code:
from django.conf import settings
from django.db import models
class AccountManager(models.Model):
account_manager = models.ForeignKey(
settings.AUTH_USER_MODEL, on_delete=models.PROTECT, null=True,
blank=True
)
class Meta:
verbose_name = 'Ac
2 matches
Mail list logo