Using Sorted on a set of a QuerySet

I have this Page model: class BlogPostPage(Page): date_published= models.DateField(‘Published date’, blank=True, null=True) intro= models.CharField(max_length=250) body = RichTextField(blank=True) header_image = models.ForeignKey(‘wagtailimages.Image’, blank=True, null=True, on_delete=models.SET_NULL, related_name=’+’) tags = ClusterTaggableManager(through=’blog.BlogPageTag’, blank=True) categories = ParentalManyToManyField(‘blog.BlogCategory’, blank=True) def get_context(self, request): context = super().get_context(request) all_categories = [] for post in self.get_siblings(inclusive=True): all_categories +=post.specific.categories.all() all_categories = sorted(set(all_categories)) context[‘all_categories’]= all_categories return context When…

Details

Long boot time, stuck on starting a disk which does not appear in fstab

I recently got a problem from my Fedora 31 x64. While starting up, the OS stuck on A start job is running for /dev/disk/by-uuid/ccd365d0-0305-4b27-b0be-f434bd32b999 Then after 1min 30s, it got Timed out waiting for device /dev/disk/by-uuid/ccd365d0-0305-4b27-b0be-f434bd32b999 Dependency failed for Resume from hibernation using device /dev/disk/by-uuid/ccd365d0-0305-4b27-b0be-f434bd32b999 Most online pages related to this kind of errors were…

Details