git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| from datetime import datetime | |
| from django.db.backends.mysql.base import DatabaseWrapper as MySQLDatabaseWrapper | |
| class DBTimestampAutoNowField(models.DateTimeField): | |
| """ | |
| Cria um DateTimeField que é representado no banco de dados como um TIMESTAMP, | |
| que é atualizado a cada modificação na instância, com a data atual com uma precisão | |
| de milisegundos. | |
| Essa atualização é gerenciada pelo próprio MySQL e não pelo Django, garantindo |
| [flake8] | |
| max-line-length = 88 | |
| exclude=*/migrations/* |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| // If you using SweetAlert2 (Swal) and JQuery you can replace all alert and confirm that way. | |
| // https://limonte.github.io/sweetalert2/ | |
| // TIP: if you aren't using JQuery, use native JavaScript to create extend method. As bellow: | |
| /* | |
| function extend(a, b){ | |
| for(var key in b) | |
| if(b.hasOwnProperty(key)) | |
| a[key] = b[key]; | |
| return a; | |
| } |