django-galleries icon indicating copy to clipboard operation
django-galleries copied to clipboard

TypeError while using sample Model

Open X17 opened this issue 9 years ago • 0 comments

while running program: django 1.7

Model

class Article(models.Model):

title = models.CharField(max_length=255) gallery = GalleryForeignKey('galleries.Gallery', blank=True, null=True, on_delete=models.SET_NULL)

Couldn't reconstruct field gallery on testapp.Article: init() takes at least 2 arguments (1 given)

thanks in advance.

X17 avatar Apr 10 '15 20:04 X17