| Dragon Ball RPG - DB.V1.5R |
| Vous souhaitez réagir à ce message ? Créez un compte en quelques clics ou connectez-vous pour continuer. |
Django Unchained Edit Latest Link SiteIf you're looking to edit the latest object in a model in Django, here are a few approaches you might find useful: Assuming you have a model named MyModel and you want to edit the latest object based on a field like created_at , you first need to query that object and then modify it. If you could provide more context or clarify your question further, I might be able to offer more targeted assistance. django unchained edit latest latest_object = MyModel.objects.order_by('id').last() # Or 'pk' for primary key If you're looking to edit the latest object # Get the latest object based on 'created_at' field latest_object = MyModel.objects.latest('created_at') django unchained edit latest |