Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/j/a/jaam-HEAD/jaam/blog/models.py   jaam(Download)
    subtitle = models.CharField(max_length=255, null=True, blank=True)
    description = models.TextField(null=True, blank=True)
    cover_photo = models.ForeignKey(Photo, default= lambda: Photo.all_objects.get(title="Default"), on_delete=models.SET_DEFAULT)
 
    def __unicode__(self):
    body = RichTextField()
    journalist = models.ForeignKey(User, limit_choices_to = { 'groups__name': "Journalists" })
    cover_photo = models.ForeignKey(Photo, default= lambda: Photo.all_objects.get(title="Default"), on_delete=models.SET_DEFAULT)
 
    def __unicode__(self):

src/j/a/jaam-HEAD/jaam/stories/models.py   jaam(Download)
        )
    enable_comments = models.BooleanField()
    cover_photo = models.ForeignKey(Photo, default= lambda: Photo.all_objects.get(title="Default"), on_delete=models.SET_DEFAULT)
 
    class Meta: