Monday, August 28, 2017

Re: class Meta(object)

For django it doesn't matter. It's more like historical way to define metadata.

28.8.2017 7.31 ip. "Matthew Pava" <Matthew.Pava@iss.com> kirjoitti:

Should our Meta classes inherit from object?  I just did a code inspection and got that message a few times; it never occurred to me to do that before, and even the Django documentation doesn't have Meta inherit from object.  What is the best practice, especially with Python 3?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/73ab015f75de45d6a9874216f0c79a44%40ISS1.ISS.LOCAL.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHn91odYsJpPZEu_inCDLW0DwyE00BpzEBsyzn8Z%3Dt3VL2%3D1Kg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment