models: inverse condition, fixes #3508

This commit is contained in:
Benjamin Dauvergne 2013-08-29 13:43:40 +02:00
parent d1fa32c2ba
commit 291f9d5dd4
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ class Request(models.Model):
for n in null:
if v is n:
yield field
if self.no_diffusion() and self.copyright is None:
if not self.no_diffusion() and self.copyright is None:
yield 'copyright'
def validate(self):