A

Admin • 828.03K Points
Coach

Q. How do you register a model to the Django admin?

  • (A) admin.register_model(Model)
  • (B) admin.site.register(Model)
  • (C) admin.add_model(Model)
  • (D) register(Model)
  • Correct Answer - Option(B)
  • Views: 12
  • Filed under category Django
  • Hashtags:

Explanation by: Admin
admin.site.register(Model) is used to register a model to the Django admin interface.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.