From cfce0c1784d1c84e0496ce79e335fe8f5fe32a3a Mon Sep 17 00:00:00 2001
From: adorda <angdmz@gmail.com>
Date: Mon, 1 Jun 2020 18:23:08 -0300
Subject: [PATCH] added fixture for superuser

---
 trazabilidad/fixtures/superuser.json | 13 +++++++++++++
 trazabilidad/local_settings_dev.py   |  3 +++
 2 files changed, 16 insertions(+)
 create mode 100644 trazabilidad/fixtures/superuser.json

diff --git a/trazabilidad/fixtures/superuser.json b/trazabilidad/fixtures/superuser.json
new file mode 100644
index 0000000..8b6bf89
--- /dev/null
+++ b/trazabilidad/fixtures/superuser.json
@@ -0,0 +1,13 @@
+[
+    { "model": "auth.user",
+        "pk": 1,
+        "fields": {
+            "username": "admin",
+            "password": "pbkdf2_sha256$150000$a9Gr4TljNPwH$b7cQL0y8nMILns856ZqboZcKd+xPHNHszKUvVZPRoFA=",
+            "is_superuser": true,
+            "is_staff": true,
+            "is_active": true
+        }
+    }
+]
+
diff --git a/trazabilidad/local_settings_dev.py b/trazabilidad/local_settings_dev.py
index e466b09..3d0505d 100644
--- a/trazabilidad/local_settings_dev.py
+++ b/trazabilidad/local_settings_dev.py
@@ -7,6 +7,9 @@ This program is distributed in the hope that it will be useful, but WITHOUT ANY
 
 You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/
 """
+
+FIXTURE_DIRS = ['trazabilidad/fixtures/']
+
 LOGGING = {
     'loggers': {
         'tests-logger': {
-- 
GitLab