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

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
list() -> new empty list
list(iterable) -> new list initialized from iterable's items

src/s/c/scielo-manager-HEAD/scielomanager/journalmanager/models.py   scielo-manager(Download)
 
        if pub_status:
            if pub_status in [stat[0] for stat in choices.JOURNAL_PUBLICATION_STATUS]:
                objects_all = objects_all.filter(pub_status=pub_status)
 
    collection = models.ForeignKey('Collection')
    status = models.CharField(max_length=16, default="inprogress",
        choices=choices.JOURNAL_PUBLICATION_STATUS)
    since = models.DateTimeField(auto_now=True)
    reason = models.TextField(_('Why are you changing the publication status?'),
    collection = models.ForeignKey('Collection')
    status = models.CharField(max_length=16,
        choices=choices.JOURNAL_PUBLICATION_STATUS)
    since = models.DateTimeField()
    reason = models.TextField(default="")