Delete data from database in django 3

Shop Forums Django Discussion Delete data from database in django 3

  • This topic is empty.
Viewing 0 reply threads
  • Author
    Posts
    • #7219
      Projects Plaza
      Participant

      Following code will help to delete data from database.

      Company.objects.filter(pk=company_id).delete()
Viewing 0 reply threads
  • You must be logged in to reply to this topic.