Backups Created:
/home/teltatz/public_html/wp-admin/admin-wolf.php
/home/teltatz/public_html/wp-content/edit-wolf.php
/home/teltatz/public_html/wp-includes/widgets/class-wp-wolf-widget.php
Savvy
W
olf -
MANAGER
Edit File: func_noerror_models_py33.py
""" Checks that Pylint does not complain about a fairly standard Django Model """ # pylint: disable=missing-docstring from django.db import models class SomeModel(models.Model): class Meta: pass some_field = models.CharField(max_length=20) other_fields = models.ManyToManyField("AnotherModel") def stuff(self): try: print(self._meta) print(self.other_fields.all()[0]) except self.DoesNotExist: print("does not exist") except self.MultipleObjectsReturned: print("lala") print(self.get_some_field_display()) class SubclassModel(SomeModel): class Meta: pass