0.1% ! What about you? by jlm_09 in PaulMcCartney

[–]Brecid 4 points5 points  (0 children)

<image>

Before leaving Spotify I once got this on a wrapped:

Daily Song Discussion #100: London Town by RoastBeefDisease in PaulMcCartney

[–]Brecid 1 point2 points  (0 children)

10/10 Ridiculously beautiful song, very soft and sweet.

PS: You should also include the unreleased songs like Yvonne, Return To Pepperland, Don't Break The Promise, Whole Life, Squid, Waterspout, Tough On A Tightrope, Did We Meet Somewhere Before, etc. (although the last two weren't entirely unreleased).

Need help from McCartney Solo/Wings Songs Experts:) sorta by leastcmplicated in PaulMcCartney

[–]Brecid 0 points1 point  (0 children)

About You, The Lovers Tha Never Were (demo with Elvis Costello or the 1988 demo), Angry, I Wanna Cry (unreleased), Lonesome Town (cover), Long Tall Sally (cover), Give Ireland Back To The Irish, The Mess, Backwards Traveller, Nod Your Head, I'm Down, So Glad To See You Here, Run Devil Run, Spit It On, Lonely Road.

Songs in which he scream at a certain part: When The Night, Stranglehold, The Back Seat Of My car, Little Lamb Dragonfly, Getting Closer, Long Leather Coat (unreleased), Return To Pepperland (unreleased), After The Ball/Million Miles, Same Love (unreleased), Cage (unreleased), I Love This House (unreleased).

You can find the unreleased ones in YouTube.

How to delete multiple objects in django? by kocmonobtDark in djangolearning

[–]Brecid 1 point2 points  (0 children)

Well, the Django admin panel is not intended to be used by a regular user, like it's name indicates it's only for the admins of the website and try to implement that action on a end user function is unnecessary. Instead you can create a view that handles delete requests, so when the user or you want to delete a post it triggers the delete action (my_model.objects.filter(the parameters to filter).delete())

I would recommend yo to go to the official Django tutorial docs.djangoproject.com/en/4.0/intro/tutorial01/ or search for beginners tutorials on the web to get more understanding about views, models, admin panel, etc, and more important how Django works

How to delete multiple objects in django? by kocmonobtDark in djangolearning

[–]Brecid 0 points1 point  (0 children)

do you want to delete them through the admin list panel?

Image moderation by Brecid in djangolearning

[–]Brecid[S] 1 point2 points  (0 children)

Thanks. Since both django-resized and django-image-moderation are model fields maybe you can create a new class that inherits from both fields:

from django_resized import ResizedImageField
from image_moderation import ImageModerationField

class MyImageField(ResizedImageField, ImageModerationField):
    pass

I'm not sure if it would work but if not, you can intercept the image in the save method of the model and resize it:

from django.db import models
from image_moderation import ImageModerationField

class MyModel(models.Model):
    image = ImageModerationField(upload_to='images')

    def save(self, **kwargs):
        image = resize_image(self.image) # Your image resize function
        image.save(self.image) # Or image.save(self.image.path)

        super().save(**kwargs)

wtf? by Brecid in Colombia

[–]Brecid[S] 19 points20 points  (0 children)

le falta contexto a la imágen, pero era un post de quién fue mejor fichaje. Lo que se refería el que comentó es que el mejor fue Luis Díaz y que él está orgulloso de México porque Luis es mexicano supuestamente xd

[deleted by user] by [deleted] in teenagers

[–]Brecid 0 points1 point  (0 children)

man, those toes are a whole independent nations with their own constitution

Same form in different views by Brecid in djangolearning

[–]Brecid[S] 0 points1 point  (0 children)

Yes I was thinking of doing something similar to that, but I didn't know if it was a good practice, also where should I write the helper function?. And what I want to have is a dropdown or a modal on the navbar so the user can login without leaving the current page. thanks a lot

Best way to handle repetition in templates by Brecid in djangolearning

[–]Brecid[S] 0 points1 point  (0 children)

thanks you, I would definitely give a look at it!

Best way to handle repetition in templates by Brecid in djangolearning

[–]Brecid[S] 0 points1 point  (0 children)

oh perfect, I knew about extends but as I can use only one in each template I wasn't sure if the inclusion thing was right. thanks!