logo
  • Home
  • About
  • Contact Us

How to Display all Fields in Django Updateview [simple Example]

  • Said Py
  • May 07, 2020

Syntax


fields = '__all__'

example

   
class MyView(UpdateView):
    model = MyModel
    fields = '__all__'

Hope this helps

Related posts

Understand how to use Django CreateView with example

Understanding Django LoginView With Simple Example

Understanding Django DetailView With Simple Example

Django TemplateView [Simple Example]

Search

    Categories

    • Django Snippet
    • Django Tutorial
    • Python
    • Python Libraries
    • Python Tutorial
    • Questions And Answers

    Recent Posts

    Python-Pillow: How to Show an image in Python

    May 08, 2022

    Python-Pillow: How to get Image Filename, Size, Format, and Mode

    May 05, 2022

    Pillow: Installation and getting started (Python)

    April 29, 2022

    How to insert .format multiple variables in Python

    April 27, 2022

    How to put variable in regex pattern in Python

    April 20, 2022

    How to use Django JsonResponse with example

    April 16, 2022

    Tags

    • python
    • pillow
    • variable
    • django
    • http
    • string
    • loop
    • tuple
    • list
    • BeautifulSoup

    Our Links

    • Home
    • About us
    • Privacy policy

    Our Works

    • Tutorials
    • Examples
    • Snippets
    • Solutions

    Social Media

    About Pytutorial

    Python and Django Tutorials Blog