We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
change(version num) change jumpserver version
from 0.3.0 -> 0.3.1


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `jperm/models.py`
Content:
```
1 import datetime
2 
3 from django.db import models
4 from jasset.models import Asset, AssetGroup
5 from juser.models import User, UserGroup
6 
7 
8 class PermLog(models.Model):
9     datetime = models.DateTimeField(auto_now_add=True)
10     action = models.CharField(max_length=100, null=True, blank=True, default='')
11     results = models.CharField(max_length=1000, null=True, blank=True, default='')
12     is_success = models.BooleanField(default=False)
13     is_finish = models.BooleanField(default=False)
14 
15 
16 class PermSudo(models.Model):
17     name = models.CharField(max_length=100, unique=True)
18     date_added = models.DateTimeField(auto_now=True)
19     commands = models.TextField()
20     comment = models.CharField(max_length=100, null=True, blank=True, default='')
21 
22     def __unicode__(self):
23         return self.name
24 
25 
26 class PermRole(models.Model):
27     name = models.CharField(max_length=100, unique=True)
28     comment = models.CharField(max_length=100, null=True, blank=True, default='')
29     password = models.CharField(max_length=100)
30     key_path = models.CharField(max_length=100)
31     date_added = models.DateTimeField(auto_now=True)
32     sudo = models.ManyToManyField(PermSudo, related_name='perm_role')
33 
34     def __unicode__(self):
35         return self.name
36 
37 
38 class PermRule(models.Model):
39     date_added = models.DateTimeField(auto_now=True)
40     name = models.CharField(max_length=100, unique=True)
41     comment = models.CharField(max_length=100)
42     asset = models.ManyToManyField(Asset, related_name='perm_rule')
43     asset_group = models.ManyToManyField(AssetGroup, related_name='perm_rule')
44     user = models.ManyToManyField(User, related_name='perm_rule')
45     user_group = models.ManyToManyField(UserGroup, related_name='perm_rule')
46     role = models.ManyToManyField(PermRole, related_name='perm_rule')
47 
48     def __unicode__(self):
49         return self.name
50 
51 
52 class PermPush(models.Model):
53     asset = models.ForeignKey(Asset, related_name='perm_push')
54     role = models.ForeignKey(PermRole, related_name='perm_push')
55     is_public_key = models.BooleanField(default=False)
56     is_password = models.BooleanField(default=False)
57     success = models.BooleanField(default=False)
58     result = models.TextField(default='')
59     date_added = models.DateTimeField(auto_now=True)
60 
61
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/jperm/models.py b/jperm/models.py
--- a/jperm/models.py
+++ b/jperm/models.py
@@ -26,7 +26,7 @@
 class PermRole(models.Model):
     name = models.CharField(max_length=100, unique=True)
     comment = models.CharField(max_length=100, null=True, blank=True, default='')
-    password = models.CharField(max_length=100)
+    password = models.CharField(max_length=128)
     key_path = models.CharField(max_length=100)
     date_added = models.DateTimeField(auto_now=True)
     sudo = models.ManyToManyField(PermSudo, related_name='perm_role')

{"golden_diff": "diff --git a/jperm/models.py b/jperm/models.py\n--- a/jperm/models.py\n+++ b/jperm/models.py\n@@ -26,7 +26,7 @@\n class PermRole(models.Model):\n     name = models.CharField(max_length=100, unique=True)\n     comment = models.CharField(max_length=100, null=True, blank=True, default='')\n-    password = models.CharField(max_length=100)\n+    password = models.CharField(max_length=128)\n     key_path = models.CharField(max_length=100)\n     date_added = models.DateTimeField(auto_now=True)\n     sudo = models.ManyToManyField(PermSudo, related_name='perm_role')\n", "issue": "change(version num) change jumpserver version\nfrom 0.3.0 -> 0.3.1\n\n", "before_files": [{"content": "import datetime\n\nfrom django.db import models\nfrom jasset.models import Asset, AssetGroup\nfrom juser.models import User, UserGroup\n\n\nclass PermLog(models.Model):\n    datetime = models.DateTimeField(auto_now_add=True)\n    action = models.CharField(max_length=100, null=True, blank=True, default='')\n    results = models.CharField(max_length=1000, null=True, blank=True, default='')\n    is_success = models.BooleanField(default=False)\n    is_finish = models.BooleanField(default=False)\n\n\nclass PermSudo(models.Model):\n    name = models.CharField(max_length=100, unique=True)\n    date_added = models.DateTimeField(auto_now=True)\n    commands = models.TextField()\n    comment = models.CharField(max_length=100, null=True, blank=True, default='')\n\n    def __unicode__(self):\n        return self.name\n\n\nclass PermRole(models.Model):\n    name = models.CharField(max_length=100, unique=True)\n    comment = models.CharField(max_length=100, null=True, blank=True, default='')\n    password = models.CharField(max_length=100)\n    key_path = models.CharField(max_length=100)\n    date_added = models.DateTimeField(auto_now=True)\n    sudo = models.ManyToManyField(PermSudo, related_name='perm_role')\n\n    def __unicode__(self):\n        return self.name\n\n\nclass PermRule(models.Model):\n    date_added = models.DateTimeField(auto_now=True)\n    name = models.CharField(max_length=100, unique=True)\n    comment = models.CharField(max_length=100)\n    asset = models.ManyToManyField(Asset, related_name='perm_rule')\n    asset_group = models.ManyToManyField(AssetGroup, related_name='perm_rule')\n    user = models.ManyToManyField(User, related_name='perm_rule')\n    user_group = models.ManyToManyField(UserGroup, related_name='perm_rule')\n    role = models.ManyToManyField(PermRole, related_name='perm_rule')\n\n    def __unicode__(self):\n        return self.name\n\n\nclass PermPush(models.Model):\n    asset = models.ForeignKey(Asset, related_name='perm_push')\n    role = models.ForeignKey(PermRole, related_name='perm_push')\n    is_public_key = models.BooleanField(default=False)\n    is_password = models.BooleanField(default=False)\n    success = models.BooleanField(default=False)\n    result = models.TextField(default='')\n    date_added = models.DateTimeField(auto_now=True)\n\n", "path": "jperm/models.py"}], "after_files": [{"content": "import datetime\n\nfrom django.db import models\nfrom jasset.models import Asset, AssetGroup\nfrom juser.models import User, UserGroup\n\n\nclass PermLog(models.Model):\n    datetime = models.DateTimeField(auto_now_add=True)\n    action = models.CharField(max_length=100, null=True, blank=True, default='')\n    results = models.CharField(max_length=1000, null=True, blank=True, default='')\n    is_success = models.BooleanField(default=False)\n    is_finish = models.BooleanField(default=False)\n\n\nclass PermSudo(models.Model):\n    name = models.CharField(max_length=100, unique=True)\n    date_added = models.DateTimeField(auto_now=True)\n    commands = models.TextField()\n    comment = models.CharField(max_length=100, null=True, blank=True, default='')\n\n    def __unicode__(self):\n        return self.name\n\n\nclass PermRole(models.Model):\n    name = models.CharField(max_length=100, unique=True)\n    comment = models.CharField(max_length=100, null=True, blank=True, default='')\n    password = models.CharField(max_length=128)\n    key_path = models.CharField(max_length=100)\n    date_added = models.DateTimeField(auto_now=True)\n    sudo = models.ManyToManyField(PermSudo, related_name='perm_role')\n\n    def __unicode__(self):\n        return self.name\n\n\nclass PermRule(models.Model):\n    date_added = models.DateTimeField(auto_now=True)\n    name = models.CharField(max_length=100, unique=True)\n    comment = models.CharField(max_length=100)\n    asset = models.ManyToManyField(Asset, related_name='perm_rule')\n    asset_group = models.ManyToManyField(AssetGroup, related_name='perm_rule')\n    user = models.ManyToManyField(User, related_name='perm_rule')\n    user_group = models.ManyToManyField(UserGroup, related_name='perm_rule')\n    role = models.ManyToManyField(PermRole, related_name='perm_rule')\n\n    def __unicode__(self):\n        return self.name\n\n\nclass PermPush(models.Model):\n    asset = models.ForeignKey(Asset, related_name='perm_push')\n    role = models.ForeignKey(PermRole, related_name='perm_push')\n    is_public_key = models.BooleanField(default=False)\n    is_password = models.BooleanField(default=False)\n    success = models.BooleanField(default=False)\n    result = models.TextField(default='')\n    date_added = models.DateTimeField(auto_now=True)\n\n", "path": "jperm/models.py"}]}