Self hosted FLOSS fitness/workout, nutrition and weight tracker
Create dependabot.yml
Roland Geider6ac3d05706d7
diff --git a/.github/dependabot.yml b/.github/dependabot.ymlnew file mode 100644index 000000000..228ef3da9--- /dev/null+++ b/.github/dependabot.yml@@ -0,0 +1,16 @@+# To get started with Dependabot version updates, you'll need to specify which+# package ecosystems to update and where the package manifests are located.+# Please see the documentation for all configuration options:+# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates++version: 2+updates:+ - package-ecosystem: "npm"+ directory: "/"+ schedule:+ interval: "daily"++ - package-ecosystem: "pip"+ directory: "/"+ schedule:+ interval: "daily"diff --git a/wger/nutrition/models.py b/wger/nutrition/models.pyindex b4ad38eab..bee7f3f6d 100644--- a/wger/nutrition/models.py+++ b/wger/nutrition/models.py@@ -379,6 +379,18 @@ class Ingredient(AbstractSubmissionModel, AbstractLicenseModel, models.Model):equal = Falsereturn equal+ def __hash__(self):+ """+ Define a hash function++ This is rather unnecessary, but it seems that newer versions of django+ have a problem when the __eq__ function is implemented, but not the+ __hash__ one. Returning hash(pk) is also django's default.++ :return: hash(pk)+ """+ return hash(self.pk)+## Own methods#