├── .gitignore ├── .landscape.yaml ├── LICENSE ├── MANIFEST.in ├── README.rst ├── example ├── README.rst ├── __init__.py ├── initial_data.json ├── manage.py ├── requirements.txt ├── settings.py ├── templates │ ├── base.html │ ├── currencies │ │ └── currency_filter.html │ └── pagination │ │ └── pagination.html └── urls.py ├── filters ├── __init__.py ├── models.py └── views.py ├── setup.cfg └── setup.py /.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | 5 | # C extensions 6 | *.so 7 | 8 | # Distribution / packaging 9 | .Python 10 | env/ 11 | build/ 12 | develop-eggs/ 13 | dist/ 14 | downloads/ 15 | eggs/ 16 | .eggs/ 17 | lib/ 18 | lib64/ 19 | parts/ 20 | sdist/ 21 | var/ 22 | *.egg-info/ 23 | .installed.cfg 24 | *.egg 25 | 26 | # PyInstaller 27 | # Usually these files are written by a python script from a template 28 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 29 | *.manifest 30 | *.spec 31 | 32 | # Installer logs 33 | pip-log.txt 34 | pip-delete-this-directory.txt 35 | 36 | # Unit test / coverage reports 37 | htmlcov/ 38 | .tox/ 39 | .coverage 40 | .coverage.* 41 | .cache 42 | nosetests.xml 43 | coverage.xml 44 | *,cover 45 | 46 | # Translations 47 | *.mo 48 | *.pot 49 | 50 | # Django stuff: 51 | *.log 52 | 53 | # Sphinx documentation 54 | docs/_build/ 55 | 56 | # PyBuilder 57 | target/ 58 | -------------------------------------------------------------------------------- /.landscape.yaml: -------------------------------------------------------------------------------- 1 | ignore-paths: 2 | - south_migrations 3 | - migrations 4 | - example 5 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013-2015, Basil Shubin 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are 6 | met: 7 | 8 | * Redistributions of source code must retain the above copyright 9 | notice, this list of conditions and the following disclaimer. 10 | * Redistributions in binary form must reproduce the above 11 | copyright notice, this list of conditions and the following 12 | disclaimer in the documentation and/or other materials provided 13 | with the distribution. 14 | * Neither the name of the author nor the names of other 15 | contributors may be used to endorse or promote products derived 16 | from this software without specific prior written permission. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- 1 | include LICENSE 2 | include README.rst 3 | -------------------------------------------------------------------------------- /README.rst: -------------------------------------------------------------------------------- 1 | django-filters-mixin 2 | ==================== 3 | 4 | Simple integration between django-filter_ and pagination_ 5 | 6 | .. image:: https://img.shields.io/pypi/v/django-filters-mixin.svg 7 | :target: https://pypi.python.org/pypi/django-filters-mixin/ 8 | 9 | .. image:: https://img.shields.io/pypi/dm/django-filters-mixin.svg 10 | :target: https://pypi.python.org/pypi/django-filters-mixin/ 11 | 12 | .. image:: https://img.shields.io/github/license/bashu/django-filters-mixin.svg 13 | :target: https://pypi.python.org/pypi/django-filters-mixin/ 14 | 15 | Requirements 16 | ------------ 17 | 18 | You must have *django-filter* installed and configured, see the 19 | django-filter_ documentation for details and setup instructions. 20 | 21 | Installation 22 | ============ 23 | 24 | .. code-block:: shell 25 | 26 | pip install django-filters-mixin 27 | 28 | 29 | Usage 30 | ===== 31 | 32 | The ``FilterMixin`` allows to use pagination together with filtering 33 | 34 | .. code-block:: python 35 | 36 | # views.py 37 | 38 | import django_filters 39 | from filters.views import FilterMixin 40 | 41 | 42 | class CustomFilterSet(django_filters.FilterSet): 43 | # read https://github.com/alex/django-filter#usage 44 | ... 45 | 46 | 47 | class CustomFilterView(FilterMixin, django_filters.views.FilterView): 48 | filterset_class = CustomFilterSet 49 | paginate_by = 12 50 | ... 51 | 52 | 53 | Please see ``example`` application. This application is used to 54 | manually test the functionalities of this package. This also serves as 55 | good example... 56 | 57 | You need Django 1.4 or above to run that. It might run on older 58 | versions but that is not tested. 59 | 60 | .. _django-filter: https://github.com/alex/django-filter 61 | .. _pagination: https://docs.djangoproject.com/en/dev/topics/pagination/ 62 | -------------------------------------------------------------------------------- /example/README.rst: -------------------------------------------------------------------------------- 1 | Example 2 | ======= 3 | 4 | To run the example application, make sure you have the required 5 | packages installed. You can do this using following commands : 6 | 7 | .. code-block:: bash 8 | 9 | mkvirtualenv example 10 | pip install -r example/requirements.txt 11 | 12 | This assumes you already have ``virtualenv`` and ``virtualenvwrapper`` 13 | installed and configured. 14 | 15 | Next, you can setup the django instance using : 16 | 17 | .. code-block:: bash 18 | 19 | python example/manage.py migrate 20 | python example/manage.py loaddata example/initial_data.json 21 | 22 | And run it : 23 | 24 | .. code-block:: bash 25 | 26 | python example/manage.py runserver 27 | 28 | Good luck! 29 | -------------------------------------------------------------------------------- /example/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bashu/django-filters-mixin/58987e62c57b19262c1f60f51b87642e3d7c52b8/example/__init__.py -------------------------------------------------------------------------------- /example/initial_data.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "fields": { 4 | "code": "AED", 5 | "name": "United Arab Emirates Dirham", 6 | "symbol": "\u062f.\u0625", 7 | "is_active": false, 8 | "is_default": false, 9 | "factor": "1.0000", 10 | "is_base": false 11 | }, 12 | "model": "currencies.currency", 13 | "pk": 1 14 | }, 15 | { 16 | "fields": { 17 | "code": "AFN", 18 | "name": "Afghan Afghani", 19 | "symbol": "\u060b", 20 | "is_active": false, 21 | "is_default": false, 22 | "factor": "1.0000", 23 | "is_base": false 24 | }, 25 | "model": "currencies.currency", 26 | "pk": 2 27 | }, 28 | { 29 | "fields": { 30 | "code": "ALL", 31 | "name": "Albanian Lek", 32 | "symbol": "Lek", 33 | "is_active": false, 34 | "is_default": false, 35 | "factor": "1.0000", 36 | "is_base": false 37 | }, 38 | "model": "currencies.currency", 39 | "pk": 3 40 | }, 41 | { 42 | "fields": { 43 | "code": "AMD", 44 | "name": "Armenian Dram", 45 | "symbol": "\u0564\u0580.", 46 | "is_active": false, 47 | "is_default": false, 48 | "factor": "1.0000", 49 | "is_base": false 50 | }, 51 | "model": "currencies.currency", 52 | "pk": 4 53 | }, 54 | { 55 | "fields": { 56 | "code": "ANG", 57 | "name": "Netherlands Antillean Guilder", 58 | "symbol": "\u0192", 59 | "is_active": false, 60 | "is_default": false, 61 | "factor": "1.0000", 62 | "is_base": false 63 | }, 64 | "model": "currencies.currency", 65 | "pk": 5 66 | }, 67 | { 68 | "fields": { 69 | "code": "AOA", 70 | "name": "Angolan Kwanza", 71 | "symbol": "Kz", 72 | "is_active": false, 73 | "is_default": false, 74 | "factor": "1.0000", 75 | "is_base": false 76 | }, 77 | "model": "currencies.currency", 78 | "pk": 6 79 | }, 80 | { 81 | "fields": { 82 | "code": "ARS", 83 | "name": "Argentine Peso", 84 | "symbol": "$", 85 | "is_active": false, 86 | "is_default": false, 87 | "factor": "1.0000", 88 | "is_base": false 89 | }, 90 | "model": "currencies.currency", 91 | "pk": 7 92 | }, 93 | { 94 | "fields": { 95 | "code": "AUD", 96 | "name": "Australian Dollar", 97 | "symbol": "$", 98 | "is_active": false, 99 | "is_default": false, 100 | "factor": "1.0000", 101 | "is_base": false 102 | }, 103 | "model": "currencies.currency", 104 | "pk": 8 105 | }, 106 | { 107 | "fields": { 108 | "code": "AWG", 109 | "name": "Aruban Florin", 110 | "symbol": "\u0192", 111 | "is_active": false, 112 | "is_default": false, 113 | "factor": "1.0000", 114 | "is_base": false 115 | }, 116 | "model": "currencies.currency", 117 | "pk": 9 118 | }, 119 | { 120 | "fields": { 121 | "code": "AZN", 122 | "name": "Azerbaijani Manat", 123 | "symbol": "\u043c\u0430\u043d", 124 | "is_active": false, 125 | "is_default": false, 126 | "factor": "1.0000", 127 | "is_base": false 128 | }, 129 | "model": "currencies.currency", 130 | "pk": 10 131 | }, 132 | { 133 | "fields": { 134 | "code": "BAM", 135 | "name": "Bosnia-Herzegovina Convertible Mark", 136 | "symbol": "KM", 137 | "is_active": false, 138 | "is_default": false, 139 | "factor": "1.0000", 140 | "is_base": false 141 | }, 142 | "model": "currencies.currency", 143 | "pk": 11 144 | }, 145 | { 146 | "fields": { 147 | "code": "BBD", 148 | "name": "Barbadian Dollar", 149 | "symbol": "$", 150 | "is_active": false, 151 | "is_default": false, 152 | "factor": "1.0000", 153 | "is_base": false 154 | }, 155 | "model": "currencies.currency", 156 | "pk": 12 157 | }, 158 | { 159 | "fields": { 160 | "code": "BDT", 161 | "name": "Bangladeshi Taka", 162 | "symbol": "\u09f3", 163 | "is_active": false, 164 | "is_default": false, 165 | "factor": "1.0000", 166 | "is_base": false 167 | }, 168 | "model": "currencies.currency", 169 | "pk": 13 170 | }, 171 | { 172 | "fields": { 173 | "code": "BGN", 174 | "name": "Bulgarian Lev", 175 | "symbol": "\u043b\u0432", 176 | "is_active": false, 177 | "is_default": false, 178 | "factor": "1.0000", 179 | "is_base": false 180 | }, 181 | "model": "currencies.currency", 182 | "pk": 14 183 | }, 184 | { 185 | "fields": { 186 | "code": "BHD", 187 | "name": "Bahraini Dinar", 188 | "symbol": "\u0628.\u062f.", 189 | "is_active": false, 190 | "is_default": false, 191 | "factor": "1.0000", 192 | "is_base": false 193 | }, 194 | "model": "currencies.currency", 195 | "pk": 15 196 | }, 197 | { 198 | "fields": { 199 | "code": "BIF", 200 | "name": "Burundian Franc", 201 | "symbol": "FBu", 202 | "is_active": false, 203 | "is_default": false, 204 | "factor": "1.0000", 205 | "is_base": false 206 | }, 207 | "model": "currencies.currency", 208 | "pk": 16 209 | }, 210 | { 211 | "fields": { 212 | "code": "BMD", 213 | "name": "Bermudan Dollar", 214 | "symbol": "$", 215 | "is_active": false, 216 | "is_default": false, 217 | "factor": "1.0000", 218 | "is_base": false 219 | }, 220 | "model": "currencies.currency", 221 | "pk": 17 222 | }, 223 | { 224 | "fields": { 225 | "code": "BND", 226 | "name": "Brunei Dollar", 227 | "symbol": "$", 228 | "is_active": false, 229 | "is_default": false, 230 | "factor": "1.0000", 231 | "is_base": false 232 | }, 233 | "model": "currencies.currency", 234 | "pk": 18 235 | }, 236 | { 237 | "fields": { 238 | "code": "BOB", 239 | "name": "Bolivian Boliviano", 240 | "symbol": "$b", 241 | "is_active": false, 242 | "is_default": false, 243 | "factor": "1.0000", 244 | "is_base": false 245 | }, 246 | "model": "currencies.currency", 247 | "pk": 19 248 | }, 249 | { 250 | "fields": { 251 | "code": "BRL", 252 | "name": "Brazilian Real", 253 | "symbol": "R$", 254 | "is_active": false, 255 | "is_default": false, 256 | "factor": "1.0000", 257 | "is_base": false 258 | }, 259 | "model": "currencies.currency", 260 | "pk": 20 261 | }, 262 | { 263 | "fields": { 264 | "code": "BSD", 265 | "name": "Bahamian Dollar", 266 | "symbol": "$", 267 | "is_active": false, 268 | "is_default": false, 269 | "factor": "1.0000", 270 | "is_base": false 271 | }, 272 | "model": "currencies.currency", 273 | "pk": 21 274 | }, 275 | { 276 | "fields": { 277 | "code": "BTC", 278 | "name": "Bitcoin", 279 | "symbol": "", 280 | "is_active": false, 281 | "is_default": false, 282 | "factor": "1.0000", 283 | "is_base": false 284 | }, 285 | "model": "currencies.currency", 286 | "pk": 22 287 | }, 288 | { 289 | "fields": { 290 | "code": "BTN", 291 | "name": "Bhutanese Ngultrum", 292 | "symbol": "Nu.", 293 | "is_active": false, 294 | "is_default": false, 295 | "factor": "1.0000", 296 | "is_base": false 297 | }, 298 | "model": "currencies.currency", 299 | "pk": 23 300 | }, 301 | { 302 | "fields": { 303 | "code": "BWP", 304 | "name": "Botswanan Pula", 305 | "symbol": "P", 306 | "is_active": false, 307 | "is_default": false, 308 | "factor": "1.0000", 309 | "is_base": false 310 | }, 311 | "model": "currencies.currency", 312 | "pk": 24 313 | }, 314 | { 315 | "fields": { 316 | "code": "BYR", 317 | "name": "Belarusian Ruble", 318 | "symbol": "p.", 319 | "is_active": false, 320 | "is_default": false, 321 | "factor": "1.0000", 322 | "is_base": false 323 | }, 324 | "model": "currencies.currency", 325 | "pk": 25 326 | }, 327 | { 328 | "fields": { 329 | "code": "BZD", 330 | "name": "Belize Dollar", 331 | "symbol": "BZ$", 332 | "is_active": false, 333 | "is_default": false, 334 | "factor": "1.0000", 335 | "is_base": false 336 | }, 337 | "model": "currencies.currency", 338 | "pk": 26 339 | }, 340 | { 341 | "fields": { 342 | "code": "CAD", 343 | "name": "Canadian Dollar", 344 | "symbol": "$", 345 | "is_active": false, 346 | "is_default": false, 347 | "factor": "1.0000", 348 | "is_base": false 349 | }, 350 | "model": "currencies.currency", 351 | "pk": 27 352 | }, 353 | { 354 | "fields": { 355 | "code": "CDF", 356 | "name": "Congolese Franc", 357 | "symbol": "F", 358 | "is_active": false, 359 | "is_default": false, 360 | "factor": "1.0000", 361 | "is_base": false 362 | }, 363 | "model": "currencies.currency", 364 | "pk": 28 365 | }, 366 | { 367 | "fields": { 368 | "code": "CHF", 369 | "name": "Swiss Franc", 370 | "symbol": "CHF", 371 | "is_active": false, 372 | "is_default": false, 373 | "factor": "1.0000", 374 | "is_base": false 375 | }, 376 | "model": "currencies.currency", 377 | "pk": 29 378 | }, 379 | { 380 | "fields": { 381 | "code": "CLF", 382 | "name": "Chilean Unit of Account (UF)", 383 | "symbol": "", 384 | "is_active": false, 385 | "is_default": false, 386 | "factor": "1.0000", 387 | "is_base": false 388 | }, 389 | "model": "currencies.currency", 390 | "pk": 30 391 | }, 392 | { 393 | "fields": { 394 | "code": "CLP", 395 | "name": "Chilean Peso", 396 | "symbol": "$", 397 | "is_active": false, 398 | "is_default": false, 399 | "factor": "1.0000", 400 | "is_base": false 401 | }, 402 | "model": "currencies.currency", 403 | "pk": 31 404 | }, 405 | { 406 | "fields": { 407 | "code": "CNY", 408 | "name": "Chinese Yuan", 409 | "symbol": "\u00a5", 410 | "is_active": false, 411 | "is_default": false, 412 | "factor": "1.0000", 413 | "is_base": false 414 | }, 415 | "model": "currencies.currency", 416 | "pk": 32 417 | }, 418 | { 419 | "fields": { 420 | "code": "COP", 421 | "name": "Colombian Peso", 422 | "symbol": "$", 423 | "is_active": false, 424 | "is_default": false, 425 | "factor": "1.0000", 426 | "is_base": false 427 | }, 428 | "model": "currencies.currency", 429 | "pk": 33 430 | }, 431 | { 432 | "fields": { 433 | "code": "CRC", 434 | "name": "Costa Rican Col\u00f3n", 435 | "symbol": "\u20a1", 436 | "is_active": false, 437 | "is_default": false, 438 | "factor": "1.0000", 439 | "is_base": false 440 | }, 441 | "model": "currencies.currency", 442 | "pk": 34 443 | }, 444 | { 445 | "fields": { 446 | "code": "CUC", 447 | "name": "Cuban Convertible Peso", 448 | "symbol": "", 449 | "is_active": false, 450 | "is_default": false, 451 | "factor": "1.0000", 452 | "is_base": false 453 | }, 454 | "model": "currencies.currency", 455 | "pk": 35 456 | }, 457 | { 458 | "fields": { 459 | "code": "CUP", 460 | "name": "Cuban Peso", 461 | "symbol": "\u20b1", 462 | "is_active": false, 463 | "is_default": false, 464 | "factor": "1.0000", 465 | "is_base": false 466 | }, 467 | "model": "currencies.currency", 468 | "pk": 36 469 | }, 470 | { 471 | "fields": { 472 | "code": "CVE", 473 | "name": "Cape Verdean Escudo", 474 | "symbol": "$", 475 | "is_active": false, 476 | "is_default": false, 477 | "factor": "1.0000", 478 | "is_base": false 479 | }, 480 | "model": "currencies.currency", 481 | "pk": 37 482 | }, 483 | { 484 | "fields": { 485 | "code": "CZK", 486 | "name": "Czech Republic Koruna", 487 | "symbol": "K\u010d", 488 | "is_active": false, 489 | "is_default": false, 490 | "factor": "1.0000", 491 | "is_base": false 492 | }, 493 | "model": "currencies.currency", 494 | "pk": 38 495 | }, 496 | { 497 | "fields": { 498 | "code": "DJF", 499 | "name": "Djiboutian Franc", 500 | "symbol": "Fdj", 501 | "is_active": false, 502 | "is_default": false, 503 | "factor": "1.0000", 504 | "is_base": false 505 | }, 506 | "model": "currencies.currency", 507 | "pk": 39 508 | }, 509 | { 510 | "fields": { 511 | "code": "DKK", 512 | "name": "Danish Krone", 513 | "symbol": "kr", 514 | "is_active": false, 515 | "is_default": false, 516 | "factor": "1.0000", 517 | "is_base": false 518 | }, 519 | "model": "currencies.currency", 520 | "pk": 40 521 | }, 522 | { 523 | "fields": { 524 | "code": "DOP", 525 | "name": "Dominican Peso", 526 | "symbol": "RD$", 527 | "is_active": false, 528 | "is_default": false, 529 | "factor": "1.0000", 530 | "is_base": false 531 | }, 532 | "model": "currencies.currency", 533 | "pk": 41 534 | }, 535 | { 536 | "fields": { 537 | "code": "DZD", 538 | "name": "Algerian Dinar", 539 | "symbol": "\u062f\u062c", 540 | "is_active": false, 541 | "is_default": false, 542 | "factor": "1.0000", 543 | "is_base": false 544 | }, 545 | "model": "currencies.currency", 546 | "pk": 42 547 | }, 548 | { 549 | "fields": { 550 | "code": "EEK", 551 | "name": "Estonian Kroon", 552 | "symbol": "kr", 553 | "is_active": false, 554 | "is_default": false, 555 | "factor": "1.0000", 556 | "is_base": false 557 | }, 558 | "model": "currencies.currency", 559 | "pk": 43 560 | }, 561 | { 562 | "fields": { 563 | "code": "EGP", 564 | "name": "Egyptian Pound", 565 | "symbol": "\u00a3", 566 | "is_active": false, 567 | "is_default": false, 568 | "factor": "1.0000", 569 | "is_base": false 570 | }, 571 | "model": "currencies.currency", 572 | "pk": 44 573 | }, 574 | { 575 | "fields": { 576 | "code": "ERN", 577 | "name": "Eritrean Nakfa", 578 | "symbol": "Nfk", 579 | "is_active": false, 580 | "is_default": false, 581 | "factor": "1.0000", 582 | "is_base": false 583 | }, 584 | "model": "currencies.currency", 585 | "pk": 45 586 | }, 587 | { 588 | "fields": { 589 | "code": "ETB", 590 | "name": "Ethiopian Birr", 591 | "symbol": "Br", 592 | "is_active": false, 593 | "is_default": false, 594 | "factor": "1.0000", 595 | "is_base": false 596 | }, 597 | "model": "currencies.currency", 598 | "pk": 46 599 | }, 600 | { 601 | "fields": { 602 | "code": "EUR", 603 | "name": "Euro", 604 | "symbol": "\u20ac", 605 | "is_active": false, 606 | "is_default": false, 607 | "factor": "1.0000", 608 | "is_base": false 609 | }, 610 | "model": "currencies.currency", 611 | "pk": 47 612 | }, 613 | { 614 | "fields": { 615 | "code": "FJD", 616 | "name": "Fijian Dollar", 617 | "symbol": "$", 618 | "is_active": false, 619 | "is_default": false, 620 | "factor": "1.0000", 621 | "is_base": false 622 | }, 623 | "model": "currencies.currency", 624 | "pk": 48 625 | }, 626 | { 627 | "fields": { 628 | "code": "FKP", 629 | "name": "Falkland Islands Pound", 630 | "symbol": "\u00a3", 631 | "is_active": false, 632 | "is_default": false, 633 | "factor": "1.0000", 634 | "is_base": false 635 | }, 636 | "model": "currencies.currency", 637 | "pk": 49 638 | }, 639 | { 640 | "fields": { 641 | "code": "GBP", 642 | "name": "British Pound Sterling", 643 | "symbol": "\u00a3", 644 | "is_active": false, 645 | "is_default": false, 646 | "factor": "1.0000", 647 | "is_base": false 648 | }, 649 | "model": "currencies.currency", 650 | "pk": 50 651 | }, 652 | { 653 | "fields": { 654 | "code": "GEL", 655 | "name": "Georgian Lari", 656 | "symbol": "GEL", 657 | "is_active": false, 658 | "is_default": false, 659 | "factor": "1.0000", 660 | "is_base": false 661 | }, 662 | "model": "currencies.currency", 663 | "pk": 51 664 | }, 665 | { 666 | "fields": { 667 | "code": "GGP", 668 | "name": "Guernsey Pound", 669 | "symbol": "", 670 | "is_active": false, 671 | "is_default": false, 672 | "factor": "1.0000", 673 | "is_base": false 674 | }, 675 | "model": "currencies.currency", 676 | "pk": 52 677 | }, 678 | { 679 | "fields": { 680 | "code": "GHS", 681 | "name": "Ghanaian Cedi", 682 | "symbol": "\u20b5", 683 | "is_active": false, 684 | "is_default": false, 685 | "factor": "1.0000", 686 | "is_base": false 687 | }, 688 | "model": "currencies.currency", 689 | "pk": 53 690 | }, 691 | { 692 | "fields": { 693 | "code": "GIP", 694 | "name": "Gibraltar Pound", 695 | "symbol": "\u00a3", 696 | "is_active": false, 697 | "is_default": false, 698 | "factor": "1.0000", 699 | "is_base": false 700 | }, 701 | "model": "currencies.currency", 702 | "pk": 54 703 | }, 704 | { 705 | "fields": { 706 | "code": "GMD", 707 | "name": "Gambian Dalasi", 708 | "symbol": "D", 709 | "is_active": false, 710 | "is_default": false, 711 | "factor": "1.0000", 712 | "is_base": false 713 | }, 714 | "model": "currencies.currency", 715 | "pk": 55 716 | }, 717 | { 718 | "fields": { 719 | "code": "GNF", 720 | "name": "Guinean Franc", 721 | "symbol": "FG", 722 | "is_active": false, 723 | "is_default": false, 724 | "factor": "1.0000", 725 | "is_base": false 726 | }, 727 | "model": "currencies.currency", 728 | "pk": 56 729 | }, 730 | { 731 | "fields": { 732 | "code": "GTQ", 733 | "name": "Guatemalan Quetzal", 734 | "symbol": "Q", 735 | "is_active": false, 736 | "is_default": false, 737 | "factor": "1.0000", 738 | "is_base": false 739 | }, 740 | "model": "currencies.currency", 741 | "pk": 57 742 | }, 743 | { 744 | "fields": { 745 | "code": "GYD", 746 | "name": "Guyanaese Dollar", 747 | "symbol": "$", 748 | "is_active": false, 749 | "is_default": false, 750 | "factor": "1.0000", 751 | "is_base": false 752 | }, 753 | "model": "currencies.currency", 754 | "pk": 58 755 | }, 756 | { 757 | "fields": { 758 | "code": "HKD", 759 | "name": "Hong Kong Dollar", 760 | "symbol": "$", 761 | "is_active": false, 762 | "is_default": false, 763 | "factor": "1.0000", 764 | "is_base": false 765 | }, 766 | "model": "currencies.currency", 767 | "pk": 59 768 | }, 769 | { 770 | "fields": { 771 | "code": "HNL", 772 | "name": "Honduran Lempira", 773 | "symbol": "L", 774 | "is_active": false, 775 | "is_default": false, 776 | "factor": "1.0000", 777 | "is_base": false 778 | }, 779 | "model": "currencies.currency", 780 | "pk": 60 781 | }, 782 | { 783 | "fields": { 784 | "code": "HRK", 785 | "name": "Croatian Kuna", 786 | "symbol": "kn", 787 | "is_active": false, 788 | "is_default": false, 789 | "factor": "1.0000", 790 | "is_base": false 791 | }, 792 | "model": "currencies.currency", 793 | "pk": 61 794 | }, 795 | { 796 | "fields": { 797 | "code": "HTG", 798 | "name": "Haitian Gourde", 799 | "symbol": "G", 800 | "is_active": false, 801 | "is_default": false, 802 | "factor": "1.0000", 803 | "is_base": false 804 | }, 805 | "model": "currencies.currency", 806 | "pk": 62 807 | }, 808 | { 809 | "fields": { 810 | "code": "HUF", 811 | "name": "Hungarian Forint", 812 | "symbol": "Ft", 813 | "is_active": false, 814 | "is_default": false, 815 | "factor": "1.0000", 816 | "is_base": false 817 | }, 818 | "model": "currencies.currency", 819 | "pk": 63 820 | }, 821 | { 822 | "fields": { 823 | "code": "IDR", 824 | "name": "Indonesian Rupiah", 825 | "symbol": "Rp", 826 | "is_active": false, 827 | "is_default": false, 828 | "factor": "1.0000", 829 | "is_base": false 830 | }, 831 | "model": "currencies.currency", 832 | "pk": 64 833 | }, 834 | { 835 | "fields": { 836 | "code": "ILS", 837 | "name": "Israeli New Sheqel", 838 | "symbol": "\u20aa", 839 | "is_active": false, 840 | "is_default": false, 841 | "factor": "1.0000", 842 | "is_base": false 843 | }, 844 | "model": "currencies.currency", 845 | "pk": 65 846 | }, 847 | { 848 | "fields": { 849 | "code": "IMP", 850 | "name": "Manx pound", 851 | "symbol": "", 852 | "is_active": false, 853 | "is_default": false, 854 | "factor": "1.0000", 855 | "is_base": false 856 | }, 857 | "model": "currencies.currency", 858 | "pk": 66 859 | }, 860 | { 861 | "fields": { 862 | "code": "INR", 863 | "name": "Indian Rupee", 864 | "symbol": "Rs", 865 | "is_active": false, 866 | "is_default": false, 867 | "factor": "1.0000", 868 | "is_base": false 869 | }, 870 | "model": "currencies.currency", 871 | "pk": 67 872 | }, 873 | { 874 | "fields": { 875 | "code": "IQD", 876 | "name": "Iraqi Dinar", 877 | "symbol": "\u0639\u062f", 878 | "is_active": false, 879 | "is_default": false, 880 | "factor": "1.0000", 881 | "is_base": false 882 | }, 883 | "model": "currencies.currency", 884 | "pk": 68 885 | }, 886 | { 887 | "fields": { 888 | "code": "IRR", 889 | "name": "Iranian Rial", 890 | "symbol": "\ufdfc", 891 | "is_active": false, 892 | "is_default": false, 893 | "factor": "1.0000", 894 | "is_base": false 895 | }, 896 | "model": "currencies.currency", 897 | "pk": 69 898 | }, 899 | { 900 | "fields": { 901 | "code": "ISK", 902 | "name": "Icelandic Kr\u00f3na", 903 | "symbol": "kr", 904 | "is_active": false, 905 | "is_default": false, 906 | "factor": "1.0000", 907 | "is_base": false 908 | }, 909 | "model": "currencies.currency", 910 | "pk": 70 911 | }, 912 | { 913 | "fields": { 914 | "code": "JEP", 915 | "name": "Jersey Pound", 916 | "symbol": "\u00a3", 917 | "is_active": false, 918 | "is_default": false, 919 | "factor": "1.0000", 920 | "is_base": false 921 | }, 922 | "model": "currencies.currency", 923 | "pk": 71 924 | }, 925 | { 926 | "fields": { 927 | "code": "JMD", 928 | "name": "Jamaican Dollar", 929 | "symbol": "J$", 930 | "is_active": false, 931 | "is_default": false, 932 | "factor": "1.0000", 933 | "is_base": false 934 | }, 935 | "model": "currencies.currency", 936 | "pk": 72 937 | }, 938 | { 939 | "fields": { 940 | "code": "JOD", 941 | "name": "Jordanian Dinar", 942 | "symbol": "JOD", 943 | "is_active": false, 944 | "is_default": false, 945 | "factor": "1.0000", 946 | "is_base": false 947 | }, 948 | "model": "currencies.currency", 949 | "pk": 73 950 | }, 951 | { 952 | "fields": { 953 | "code": "JPY", 954 | "name": "Japanese Yen", 955 | "symbol": "\u00a5", 956 | "is_active": false, 957 | "is_default": false, 958 | "factor": "1.0000", 959 | "is_base": false 960 | }, 961 | "model": "currencies.currency", 962 | "pk": 74 963 | }, 964 | { 965 | "fields": { 966 | "code": "KES", 967 | "name": "Kenyan Shilling", 968 | "symbol": "KSh", 969 | "is_active": false, 970 | "is_default": false, 971 | "factor": "1.0000", 972 | "is_base": false 973 | }, 974 | "model": "currencies.currency", 975 | "pk": 75 976 | }, 977 | { 978 | "fields": { 979 | "code": "KGS", 980 | "name": "Kyrgystani Som", 981 | "symbol": "\u043b\u0432", 982 | "is_active": false, 983 | "is_default": false, 984 | "factor": "1.0000", 985 | "is_base": false 986 | }, 987 | "model": "currencies.currency", 988 | "pk": 76 989 | }, 990 | { 991 | "fields": { 992 | "code": "KHR", 993 | "name": "Cambodian Riel", 994 | "symbol": "\u17db", 995 | "is_active": false, 996 | "is_default": false, 997 | "factor": "1.0000", 998 | "is_base": false 999 | }, 1000 | "model": "currencies.currency", 1001 | "pk": 77 1002 | }, 1003 | { 1004 | "fields": { 1005 | "code": "KMF", 1006 | "name": "Comorian Franc", 1007 | "symbol": "KMF", 1008 | "is_active": false, 1009 | "is_default": false, 1010 | "factor": "1.0000", 1011 | "is_base": false 1012 | }, 1013 | "model": "currencies.currency", 1014 | "pk": 78 1015 | }, 1016 | { 1017 | "fields": { 1018 | "code": "KPW", 1019 | "name": "North Korean Won", 1020 | "symbol": "\u20a9", 1021 | "is_active": false, 1022 | "is_default": false, 1023 | "factor": "1.0000", 1024 | "is_base": false 1025 | }, 1026 | "model": "currencies.currency", 1027 | "pk": 79 1028 | }, 1029 | { 1030 | "fields": { 1031 | "code": "KRW", 1032 | "name": "South Korean Won", 1033 | "symbol": "\u20a9", 1034 | "is_active": false, 1035 | "is_default": false, 1036 | "factor": "1.0000", 1037 | "is_base": false 1038 | }, 1039 | "model": "currencies.currency", 1040 | "pk": 80 1041 | }, 1042 | { 1043 | "fields": { 1044 | "code": "KWD", 1045 | "name": "Kuwaiti Dinar", 1046 | "symbol": "\u062f.\u0643", 1047 | "is_active": false, 1048 | "is_default": false, 1049 | "factor": "1.0000", 1050 | "is_base": false 1051 | }, 1052 | "model": "currencies.currency", 1053 | "pk": 81 1054 | }, 1055 | { 1056 | "fields": { 1057 | "code": "KYD", 1058 | "name": "Cayman Islands Dollar", 1059 | "symbol": "$", 1060 | "is_active": false, 1061 | "is_default": false, 1062 | "factor": "1.0000", 1063 | "is_base": false 1064 | }, 1065 | "model": "currencies.currency", 1066 | "pk": 82 1067 | }, 1068 | { 1069 | "fields": { 1070 | "code": "KZT", 1071 | "name": "Kazakhstani Tenge", 1072 | "symbol": "\u043b\u0432", 1073 | "is_active": false, 1074 | "is_default": false, 1075 | "factor": "1.0000", 1076 | "is_base": false 1077 | }, 1078 | "model": "currencies.currency", 1079 | "pk": 83 1080 | }, 1081 | { 1082 | "fields": { 1083 | "code": "LAK", 1084 | "name": "Laotian Kip", 1085 | "symbol": "\u20ad", 1086 | "is_active": false, 1087 | "is_default": false, 1088 | "factor": "1.0000", 1089 | "is_base": false 1090 | }, 1091 | "model": "currencies.currency", 1092 | "pk": 84 1093 | }, 1094 | { 1095 | "fields": { 1096 | "code": "LBP", 1097 | "name": "Lebanese Pound", 1098 | "symbol": "\u00a3", 1099 | "is_active": false, 1100 | "is_default": false, 1101 | "factor": "1.0000", 1102 | "is_base": false 1103 | }, 1104 | "model": "currencies.currency", 1105 | "pk": 85 1106 | }, 1107 | { 1108 | "fields": { 1109 | "code": "LKR", 1110 | "name": "Sri Lankan Rupee", 1111 | "symbol": "\u20a8", 1112 | "is_active": false, 1113 | "is_default": false, 1114 | "factor": "1.0000", 1115 | "is_base": false 1116 | }, 1117 | "model": "currencies.currency", 1118 | "pk": 86 1119 | }, 1120 | { 1121 | "fields": { 1122 | "code": "LRD", 1123 | "name": "Liberian Dollar", 1124 | "symbol": "$", 1125 | "is_active": false, 1126 | "is_default": false, 1127 | "factor": "1.0000", 1128 | "is_base": false 1129 | }, 1130 | "model": "currencies.currency", 1131 | "pk": 87 1132 | }, 1133 | { 1134 | "fields": { 1135 | "code": "LSL", 1136 | "name": "Lesotho Loti", 1137 | "symbol": "L", 1138 | "is_active": false, 1139 | "is_default": false, 1140 | "factor": "1.0000", 1141 | "is_base": false 1142 | }, 1143 | "model": "currencies.currency", 1144 | "pk": 88 1145 | }, 1146 | { 1147 | "fields": { 1148 | "code": "LTL", 1149 | "name": "Lithuanian Litas", 1150 | "symbol": "Lt", 1151 | "is_active": false, 1152 | "is_default": false, 1153 | "factor": "1.0000", 1154 | "is_base": false 1155 | }, 1156 | "model": "currencies.currency", 1157 | "pk": 89 1158 | }, 1159 | { 1160 | "fields": { 1161 | "code": "LVL", 1162 | "name": "Latvian Lats", 1163 | "symbol": "Ls", 1164 | "is_active": false, 1165 | "is_default": false, 1166 | "factor": "1.0000", 1167 | "is_base": false 1168 | }, 1169 | "model": "currencies.currency", 1170 | "pk": 90 1171 | }, 1172 | { 1173 | "fields": { 1174 | "code": "LYD", 1175 | "name": "Libyan Dinar", 1176 | "symbol": "\u0644.\u062f", 1177 | "is_active": false, 1178 | "is_default": false, 1179 | "factor": "1.0000", 1180 | "is_base": false 1181 | }, 1182 | "model": "currencies.currency", 1183 | "pk": 91 1184 | }, 1185 | { 1186 | "fields": { 1187 | "code": "MAD", 1188 | "name": "Moroccan Dirham", 1189 | "symbol": "\u0645.\u062f.", 1190 | "is_active": false, 1191 | "is_default": false, 1192 | "factor": "1.0000", 1193 | "is_base": false 1194 | }, 1195 | "model": "currencies.currency", 1196 | "pk": 92 1197 | }, 1198 | { 1199 | "fields": { 1200 | "code": "MDL", 1201 | "name": "Moldovan Leu", 1202 | "symbol": "MDL", 1203 | "is_active": false, 1204 | "is_default": false, 1205 | "factor": "1.0000", 1206 | "is_base": false 1207 | }, 1208 | "model": "currencies.currency", 1209 | "pk": 93 1210 | }, 1211 | { 1212 | "fields": { 1213 | "code": "MGA", 1214 | "name": "Malagasy Ariary", 1215 | "symbol": "MGA", 1216 | "is_active": false, 1217 | "is_default": false, 1218 | "factor": "1.0000", 1219 | "is_base": false 1220 | }, 1221 | "model": "currencies.currency", 1222 | "pk": 94 1223 | }, 1224 | { 1225 | "fields": { 1226 | "code": "MKD", 1227 | "name": "Macedonian Denar", 1228 | "symbol": "\u0434\u0435\u043d", 1229 | "is_active": false, 1230 | "is_default": false, 1231 | "factor": "1.0000", 1232 | "is_base": false 1233 | }, 1234 | "model": "currencies.currency", 1235 | "pk": 95 1236 | }, 1237 | { 1238 | "fields": { 1239 | "code": "MMK", 1240 | "name": "Myanma Kyat", 1241 | "symbol": "K", 1242 | "is_active": false, 1243 | "is_default": false, 1244 | "factor": "1.0000", 1245 | "is_base": false 1246 | }, 1247 | "model": "currencies.currency", 1248 | "pk": 96 1249 | }, 1250 | { 1251 | "fields": { 1252 | "code": "MNT", 1253 | "name": "Mongolian Tugrik", 1254 | "symbol": "\u20ae", 1255 | "is_active": false, 1256 | "is_default": false, 1257 | "factor": "1.0000", 1258 | "is_base": false 1259 | }, 1260 | "model": "currencies.currency", 1261 | "pk": 97 1262 | }, 1263 | { 1264 | "fields": { 1265 | "code": "MOP", 1266 | "name": "Macanese Pataca", 1267 | "symbol": "MOP$", 1268 | "is_active": false, 1269 | "is_default": false, 1270 | "factor": "1.0000", 1271 | "is_base": false 1272 | }, 1273 | "model": "currencies.currency", 1274 | "pk": 98 1275 | }, 1276 | { 1277 | "fields": { 1278 | "code": "MRO", 1279 | "name": "Mauritanian Ouguiya", 1280 | "symbol": "UM", 1281 | "is_active": false, 1282 | "is_default": false, 1283 | "factor": "1.0000", 1284 | "is_base": false 1285 | }, 1286 | "model": "currencies.currency", 1287 | "pk": 99 1288 | }, 1289 | { 1290 | "fields": { 1291 | "code": "MTL", 1292 | "name": "Maltese Lira", 1293 | "symbol": "", 1294 | "is_active": false, 1295 | "is_default": false, 1296 | "factor": "1.0000", 1297 | "is_base": false 1298 | }, 1299 | "model": "currencies.currency", 1300 | "pk": 100 1301 | }, 1302 | { 1303 | "fields": { 1304 | "code": "MUR", 1305 | "name": "Mauritian Rupee", 1306 | "symbol": "\u20a8", 1307 | "is_active": false, 1308 | "is_default": false, 1309 | "factor": "1.0000", 1310 | "is_base": false 1311 | }, 1312 | "model": "currencies.currency", 1313 | "pk": 101 1314 | }, 1315 | { 1316 | "fields": { 1317 | "code": "MVR", 1318 | "name": "Maldivian Rufiyaa", 1319 | "symbol": "Rf", 1320 | "is_active": false, 1321 | "is_default": false, 1322 | "factor": "1.0000", 1323 | "is_base": false 1324 | }, 1325 | "model": "currencies.currency", 1326 | "pk": 102 1327 | }, 1328 | { 1329 | "fields": { 1330 | "code": "MWK", 1331 | "name": "Malawian Kwacha", 1332 | "symbol": "MK", 1333 | "is_active": false, 1334 | "is_default": false, 1335 | "factor": "1.0000", 1336 | "is_base": false 1337 | }, 1338 | "model": "currencies.currency", 1339 | "pk": 103 1340 | }, 1341 | { 1342 | "fields": { 1343 | "code": "MXN", 1344 | "name": "Mexican Peso", 1345 | "symbol": "$", 1346 | "is_active": false, 1347 | "is_default": false, 1348 | "factor": "1.0000", 1349 | "is_base": false 1350 | }, 1351 | "model": "currencies.currency", 1352 | "pk": 104 1353 | }, 1354 | { 1355 | "fields": { 1356 | "code": "MYR", 1357 | "name": "Malaysian Ringgit", 1358 | "symbol": "RM", 1359 | "is_active": false, 1360 | "is_default": false, 1361 | "factor": "1.0000", 1362 | "is_base": false 1363 | }, 1364 | "model": "currencies.currency", 1365 | "pk": 105 1366 | }, 1367 | { 1368 | "fields": { 1369 | "code": "MZN", 1370 | "name": "Mozambican Metical", 1371 | "symbol": "MT", 1372 | "is_active": false, 1373 | "is_default": false, 1374 | "factor": "1.0000", 1375 | "is_base": false 1376 | }, 1377 | "model": "currencies.currency", 1378 | "pk": 106 1379 | }, 1380 | { 1381 | "fields": { 1382 | "code": "NAD", 1383 | "name": "Namibian Dollar", 1384 | "symbol": "$", 1385 | "is_active": false, 1386 | "is_default": false, 1387 | "factor": "1.0000", 1388 | "is_base": false 1389 | }, 1390 | "model": "currencies.currency", 1391 | "pk": 107 1392 | }, 1393 | { 1394 | "fields": { 1395 | "code": "NGN", 1396 | "name": "Nigerian Naira", 1397 | "symbol": "\u20a6", 1398 | "is_active": false, 1399 | "is_default": false, 1400 | "factor": "1.0000", 1401 | "is_base": false 1402 | }, 1403 | "model": "currencies.currency", 1404 | "pk": 108 1405 | }, 1406 | { 1407 | "fields": { 1408 | "code": "NIO", 1409 | "name": "Nicaraguan C\u00f3rdoba", 1410 | "symbol": "C$", 1411 | "is_active": false, 1412 | "is_default": false, 1413 | "factor": "1.0000", 1414 | "is_base": false 1415 | }, 1416 | "model": "currencies.currency", 1417 | "pk": 109 1418 | }, 1419 | { 1420 | "fields": { 1421 | "code": "NOK", 1422 | "name": "Norwegian Krone", 1423 | "symbol": "kr", 1424 | "is_active": false, 1425 | "is_default": false, 1426 | "factor": "1.0000", 1427 | "is_base": false 1428 | }, 1429 | "model": "currencies.currency", 1430 | "pk": 110 1431 | }, 1432 | { 1433 | "fields": { 1434 | "code": "NPR", 1435 | "name": "Nepalese Rupee", 1436 | "symbol": "\u20a8", 1437 | "is_active": false, 1438 | "is_default": false, 1439 | "factor": "1.0000", 1440 | "is_base": false 1441 | }, 1442 | "model": "currencies.currency", 1443 | "pk": 111 1444 | }, 1445 | { 1446 | "fields": { 1447 | "code": "NZD", 1448 | "name": "New Zealand Dollar", 1449 | "symbol": "$", 1450 | "is_active": false, 1451 | "is_default": false, 1452 | "factor": "1.0000", 1453 | "is_base": false 1454 | }, 1455 | "model": "currencies.currency", 1456 | "pk": 112 1457 | }, 1458 | { 1459 | "fields": { 1460 | "code": "OMR", 1461 | "name": "Omani Rial", 1462 | "symbol": "\ufdfc", 1463 | "is_active": false, 1464 | "is_default": false, 1465 | "factor": "1.0000", 1466 | "is_base": false 1467 | }, 1468 | "model": "currencies.currency", 1469 | "pk": 113 1470 | }, 1471 | { 1472 | "fields": { 1473 | "code": "PAB", 1474 | "name": "Panamanian Balboa", 1475 | "symbol": "B/.", 1476 | "is_active": false, 1477 | "is_default": false, 1478 | "factor": "1.0000", 1479 | "is_base": false 1480 | }, 1481 | "model": "currencies.currency", 1482 | "pk": 114 1483 | }, 1484 | { 1485 | "fields": { 1486 | "code": "PEN", 1487 | "name": "Peruvian Nuevo Sol", 1488 | "symbol": "S/.", 1489 | "is_active": false, 1490 | "is_default": false, 1491 | "factor": "1.0000", 1492 | "is_base": false 1493 | }, 1494 | "model": "currencies.currency", 1495 | "pk": 115 1496 | }, 1497 | { 1498 | "fields": { 1499 | "code": "PGK", 1500 | "name": "Papua New Guinean Kina", 1501 | "symbol": "K", 1502 | "is_active": false, 1503 | "is_default": false, 1504 | "factor": "1.0000", 1505 | "is_base": false 1506 | }, 1507 | "model": "currencies.currency", 1508 | "pk": 116 1509 | }, 1510 | { 1511 | "fields": { 1512 | "code": "PHP", 1513 | "name": "Philippine Peso", 1514 | "symbol": "\u20b1", 1515 | "is_active": false, 1516 | "is_default": false, 1517 | "factor": "1.0000", 1518 | "is_base": false 1519 | }, 1520 | "model": "currencies.currency", 1521 | "pk": 117 1522 | }, 1523 | { 1524 | "fields": { 1525 | "code": "PKR", 1526 | "name": "Pakistani Rupee", 1527 | "symbol": "\u20a8", 1528 | "is_active": false, 1529 | "is_default": false, 1530 | "factor": "1.0000", 1531 | "is_base": false 1532 | }, 1533 | "model": "currencies.currency", 1534 | "pk": 118 1535 | }, 1536 | { 1537 | "fields": { 1538 | "code": "PLN", 1539 | "name": "Polish Zloty", 1540 | "symbol": "z\u0142", 1541 | "is_active": false, 1542 | "is_default": false, 1543 | "factor": "1.0000", 1544 | "is_base": false 1545 | }, 1546 | "model": "currencies.currency", 1547 | "pk": 119 1548 | }, 1549 | { 1550 | "fields": { 1551 | "code": "PYG", 1552 | "name": "Paraguayan Guarani", 1553 | "symbol": "Gs", 1554 | "is_active": false, 1555 | "is_default": false, 1556 | "factor": "1.0000", 1557 | "is_base": false 1558 | }, 1559 | "model": "currencies.currency", 1560 | "pk": 120 1561 | }, 1562 | { 1563 | "fields": { 1564 | "code": "QAR", 1565 | "name": "Qatari Rial", 1566 | "symbol": "\ufdfc", 1567 | "is_active": false, 1568 | "is_default": false, 1569 | "factor": "1.0000", 1570 | "is_base": false 1571 | }, 1572 | "model": "currencies.currency", 1573 | "pk": 121 1574 | }, 1575 | { 1576 | "fields": { 1577 | "code": "RON", 1578 | "name": "Romanian Leu", 1579 | "symbol": "lei", 1580 | "is_active": false, 1581 | "is_default": false, 1582 | "factor": "1.0000", 1583 | "is_base": false 1584 | }, 1585 | "model": "currencies.currency", 1586 | "pk": 122 1587 | }, 1588 | { 1589 | "fields": { 1590 | "code": "RSD", 1591 | "name": "Serbian Dinar", 1592 | "symbol": "\u0414\u0438\u043d.", 1593 | "is_active": false, 1594 | "is_default": false, 1595 | "factor": "1.0000", 1596 | "is_base": false 1597 | }, 1598 | "model": "currencies.currency", 1599 | "pk": 123 1600 | }, 1601 | { 1602 | "fields": { 1603 | "code": "RUB", 1604 | "name": "Russian Ruble", 1605 | "symbol": "\u0440\u0443\u0431", 1606 | "is_active": false, 1607 | "is_default": false, 1608 | "factor": "1.0000", 1609 | "is_base": false 1610 | }, 1611 | "model": "currencies.currency", 1612 | "pk": 124 1613 | }, 1614 | { 1615 | "fields": { 1616 | "code": "RWF", 1617 | "name": "Rwandan Franc", 1618 | "symbol": "RF", 1619 | "is_active": false, 1620 | "is_default": false, 1621 | "factor": "1.0000", 1622 | "is_base": false 1623 | }, 1624 | "model": "currencies.currency", 1625 | "pk": 125 1626 | }, 1627 | { 1628 | "fields": { 1629 | "code": "SAR", 1630 | "name": "Saudi Riyal", 1631 | "symbol": "\ufdfc", 1632 | "is_active": false, 1633 | "is_default": false, 1634 | "factor": "1.0000", 1635 | "is_base": false 1636 | }, 1637 | "model": "currencies.currency", 1638 | "pk": 126 1639 | }, 1640 | { 1641 | "fields": { 1642 | "code": "SBD", 1643 | "name": "Solomon Islands Dollar", 1644 | "symbol": "$", 1645 | "is_active": false, 1646 | "is_default": false, 1647 | "factor": "1.0000", 1648 | "is_base": false 1649 | }, 1650 | "model": "currencies.currency", 1651 | "pk": 127 1652 | }, 1653 | { 1654 | "fields": { 1655 | "code": "SCR", 1656 | "name": "Seychellois Rupee", 1657 | "symbol": "\u20a8", 1658 | "is_active": false, 1659 | "is_default": false, 1660 | "factor": "1.0000", 1661 | "is_base": false 1662 | }, 1663 | "model": "currencies.currency", 1664 | "pk": 128 1665 | }, 1666 | { 1667 | "fields": { 1668 | "code": "SDG", 1669 | "name": "Sudanese Pound", 1670 | "symbol": "SDG", 1671 | "is_active": false, 1672 | "is_default": false, 1673 | "factor": "1.0000", 1674 | "is_base": false 1675 | }, 1676 | "model": "currencies.currency", 1677 | "pk": 129 1678 | }, 1679 | { 1680 | "fields": { 1681 | "code": "SEK", 1682 | "name": "Swedish Krona", 1683 | "symbol": "kr", 1684 | "is_active": false, 1685 | "is_default": false, 1686 | "factor": "1.0000", 1687 | "is_base": false 1688 | }, 1689 | "model": "currencies.currency", 1690 | "pk": 130 1691 | }, 1692 | { 1693 | "fields": { 1694 | "code": "SGD", 1695 | "name": "Singapore Dollar", 1696 | "symbol": "$", 1697 | "is_active": false, 1698 | "is_default": false, 1699 | "factor": "1.0000", 1700 | "is_base": false 1701 | }, 1702 | "model": "currencies.currency", 1703 | "pk": 131 1704 | }, 1705 | { 1706 | "fields": { 1707 | "code": "SHP", 1708 | "name": "Saint Helena Pound", 1709 | "symbol": "\u00a3", 1710 | "is_active": false, 1711 | "is_default": false, 1712 | "factor": "1.0000", 1713 | "is_base": false 1714 | }, 1715 | "model": "currencies.currency", 1716 | "pk": 132 1717 | }, 1718 | { 1719 | "fields": { 1720 | "code": "SLL", 1721 | "name": "Sierra Leonean Leone", 1722 | "symbol": "Le", 1723 | "is_active": false, 1724 | "is_default": false, 1725 | "factor": "1.0000", 1726 | "is_base": false 1727 | }, 1728 | "model": "currencies.currency", 1729 | "pk": 133 1730 | }, 1731 | { 1732 | "fields": { 1733 | "code": "SOS", 1734 | "name": "Somali Shilling", 1735 | "symbol": "S", 1736 | "is_active": false, 1737 | "is_default": false, 1738 | "factor": "1.0000", 1739 | "is_base": false 1740 | }, 1741 | "model": "currencies.currency", 1742 | "pk": 134 1743 | }, 1744 | { 1745 | "fields": { 1746 | "code": "SRD", 1747 | "name": "Surinamese Dollar", 1748 | "symbol": "$", 1749 | "is_active": false, 1750 | "is_default": false, 1751 | "factor": "1.0000", 1752 | "is_base": false 1753 | }, 1754 | "model": "currencies.currency", 1755 | "pk": 135 1756 | }, 1757 | { 1758 | "fields": { 1759 | "code": "STD", 1760 | "name": "S\u00e3o Tom\u00e9 and Pr\u00edncipe Dobra", 1761 | "symbol": "Db", 1762 | "is_active": false, 1763 | "is_default": false, 1764 | "factor": "1.0000", 1765 | "is_base": false 1766 | }, 1767 | "model": "currencies.currency", 1768 | "pk": 136 1769 | }, 1770 | { 1771 | "fields": { 1772 | "code": "SVC", 1773 | "name": "Salvadoran Col\u00f3n", 1774 | "symbol": "$", 1775 | "is_active": false, 1776 | "is_default": false, 1777 | "factor": "1.0000", 1778 | "is_base": false 1779 | }, 1780 | "model": "currencies.currency", 1781 | "pk": 137 1782 | }, 1783 | { 1784 | "fields": { 1785 | "code": "SYP", 1786 | "name": "Syrian Pound", 1787 | "symbol": "\u00a3", 1788 | "is_active": false, 1789 | "is_default": false, 1790 | "factor": "1.0000", 1791 | "is_base": false 1792 | }, 1793 | "model": "currencies.currency", 1794 | "pk": 138 1795 | }, 1796 | { 1797 | "fields": { 1798 | "code": "SZL", 1799 | "name": "Swazi Lilangeni", 1800 | "symbol": "L", 1801 | "is_active": false, 1802 | "is_default": false, 1803 | "factor": "1.0000", 1804 | "is_base": false 1805 | }, 1806 | "model": "currencies.currency", 1807 | "pk": 139 1808 | }, 1809 | { 1810 | "fields": { 1811 | "code": "THB", 1812 | "name": "Thai Baht", 1813 | "symbol": "\u0e3f", 1814 | "is_active": false, 1815 | "is_default": false, 1816 | "factor": "1.0000", 1817 | "is_base": false 1818 | }, 1819 | "model": "currencies.currency", 1820 | "pk": 140 1821 | }, 1822 | { 1823 | "fields": { 1824 | "code": "TJS", 1825 | "name": "Tajikistani Somoni", 1826 | "symbol": "TJS", 1827 | "is_active": false, 1828 | "is_default": false, 1829 | "factor": "1.0000", 1830 | "is_base": false 1831 | }, 1832 | "model": "currencies.currency", 1833 | "pk": 141 1834 | }, 1835 | { 1836 | "fields": { 1837 | "code": "TMT", 1838 | "name": "Turkmenistani Manat", 1839 | "symbol": "TLVL", 1840 | "is_active": false, 1841 | "is_default": false, 1842 | "factor": "1.0000", 1843 | "is_base": false 1844 | }, 1845 | "model": "currencies.currency", 1846 | "pk": 142 1847 | }, 1848 | { 1849 | "fields": { 1850 | "code": "TND", 1851 | "name": "Tunisian Dinar", 1852 | "symbol": "\u062f.\u062a ", 1853 | "is_active": false, 1854 | "is_default": false, 1855 | "factor": "1.0000", 1856 | "is_base": false 1857 | }, 1858 | "model": "currencies.currency", 1859 | "pk": 143 1860 | }, 1861 | { 1862 | "fields": { 1863 | "code": "TOP", 1864 | "name": "Tongan Pa\u02bbanga", 1865 | "symbol": "T$", 1866 | "is_active": false, 1867 | "is_default": false, 1868 | "factor": "1.0000", 1869 | "is_base": false 1870 | }, 1871 | "model": "currencies.currency", 1872 | "pk": 144 1873 | }, 1874 | { 1875 | "fields": { 1876 | "code": "TRY", 1877 | "name": "Turkish Lira", 1878 | "symbol": "TL", 1879 | "is_active": false, 1880 | "is_default": false, 1881 | "factor": "1.0000", 1882 | "is_base": false 1883 | }, 1884 | "model": "currencies.currency", 1885 | "pk": 145 1886 | }, 1887 | { 1888 | "fields": { 1889 | "code": "TTD", 1890 | "name": "Trinidad and Tobago Dollar", 1891 | "symbol": "TT$", 1892 | "is_active": false, 1893 | "is_default": false, 1894 | "factor": "1.0000", 1895 | "is_base": false 1896 | }, 1897 | "model": "currencies.currency", 1898 | "pk": 146 1899 | }, 1900 | { 1901 | "fields": { 1902 | "code": "TWD", 1903 | "name": "New Taiwan Dollar", 1904 | "symbol": "NT$", 1905 | "is_active": false, 1906 | "is_default": false, 1907 | "factor": "1.0000", 1908 | "is_base": false 1909 | }, 1910 | "model": "currencies.currency", 1911 | "pk": 147 1912 | }, 1913 | { 1914 | "fields": { 1915 | "code": "TZS", 1916 | "name": "Tanzanian Shilling", 1917 | "symbol": "TZS", 1918 | "is_active": false, 1919 | "is_default": false, 1920 | "factor": "1.0000", 1921 | "is_base": false 1922 | }, 1923 | "model": "currencies.currency", 1924 | "pk": 148 1925 | }, 1926 | { 1927 | "fields": { 1928 | "code": "UAH", 1929 | "name": "Ukrainian Hryvnia", 1930 | "symbol": "\u20b4", 1931 | "is_active": false, 1932 | "is_default": false, 1933 | "factor": "1.0000", 1934 | "is_base": false 1935 | }, 1936 | "model": "currencies.currency", 1937 | "pk": 149 1938 | }, 1939 | { 1940 | "fields": { 1941 | "code": "UGX", 1942 | "name": "Ugandan Shilling", 1943 | "symbol": "USh", 1944 | "is_active": false, 1945 | "is_default": false, 1946 | "factor": "1.0000", 1947 | "is_base": false 1948 | }, 1949 | "model": "currencies.currency", 1950 | "pk": 150 1951 | }, 1952 | { 1953 | "fields": { 1954 | "code": "USD", 1955 | "name": "United States Dollar", 1956 | "symbol": "$", 1957 | "is_active": false, 1958 | "is_default": false, 1959 | "factor": "1.0000", 1960 | "is_base": false 1961 | }, 1962 | "model": "currencies.currency", 1963 | "pk": 151 1964 | }, 1965 | { 1966 | "fields": { 1967 | "code": "UYU", 1968 | "name": "Uruguayan Peso", 1969 | "symbol": "$U", 1970 | "is_active": false, 1971 | "is_default": false, 1972 | "factor": "1.0000", 1973 | "is_base": false 1974 | }, 1975 | "model": "currencies.currency", 1976 | "pk": 152 1977 | }, 1978 | { 1979 | "fields": { 1980 | "code": "UZS", 1981 | "name": "Uzbekistan Som", 1982 | "symbol": "\u043b\u0432", 1983 | "is_active": false, 1984 | "is_default": false, 1985 | "factor": "1.0000", 1986 | "is_base": false 1987 | }, 1988 | "model": "currencies.currency", 1989 | "pk": 153 1990 | }, 1991 | { 1992 | "fields": { 1993 | "code": "VEF", 1994 | "name": "Venezuelan Bol\u00edvar Fuerte", 1995 | "symbol": "Bs", 1996 | "is_active": false, 1997 | "is_default": false, 1998 | "factor": "1.0000", 1999 | "is_base": false 2000 | }, 2001 | "model": "currencies.currency", 2002 | "pk": 154 2003 | }, 2004 | { 2005 | "fields": { 2006 | "code": "VND", 2007 | "name": "Vietnamese Dong", 2008 | "symbol": "\u20ab", 2009 | "is_active": false, 2010 | "is_default": false, 2011 | "factor": "1.0000", 2012 | "is_base": false 2013 | }, 2014 | "model": "currencies.currency", 2015 | "pk": 155 2016 | }, 2017 | { 2018 | "fields": { 2019 | "code": "VUV", 2020 | "name": "Vanuatu Vatu", 2021 | "symbol": "Vt", 2022 | "is_active": false, 2023 | "is_default": false, 2024 | "factor": "1.0000", 2025 | "is_base": false 2026 | }, 2027 | "model": "currencies.currency", 2028 | "pk": 156 2029 | }, 2030 | { 2031 | "fields": { 2032 | "code": "WST", 2033 | "name": "Samoan Tala", 2034 | "symbol": "WS$", 2035 | "is_active": false, 2036 | "is_default": false, 2037 | "factor": "1.0000", 2038 | "is_base": false 2039 | }, 2040 | "model": "currencies.currency", 2041 | "pk": 157 2042 | }, 2043 | { 2044 | "fields": { 2045 | "code": "XAF", 2046 | "name": "CFA Franc BEAC", 2047 | "symbol": "FCFA", 2048 | "is_active": false, 2049 | "is_default": false, 2050 | "factor": "1.0000", 2051 | "is_base": false 2052 | }, 2053 | "model": "currencies.currency", 2054 | "pk": 158 2055 | }, 2056 | { 2057 | "fields": { 2058 | "code": "XAG", 2059 | "name": "Silver (troy ounce)", 2060 | "symbol": "", 2061 | "is_active": false, 2062 | "is_default": false, 2063 | "factor": "1.0000", 2064 | "is_base": false 2065 | }, 2066 | "model": "currencies.currency", 2067 | "pk": 159 2068 | }, 2069 | { 2070 | "fields": { 2071 | "code": "XAU", 2072 | "name": "Gold (troy ounce)", 2073 | "symbol": "", 2074 | "is_active": false, 2075 | "is_default": false, 2076 | "factor": "1.0000", 2077 | "is_base": false 2078 | }, 2079 | "model": "currencies.currency", 2080 | "pk": 160 2081 | }, 2082 | { 2083 | "fields": { 2084 | "code": "XCD", 2085 | "name": "East Caribbean Dollar", 2086 | "symbol": "$", 2087 | "is_active": false, 2088 | "is_default": false, 2089 | "factor": "1.0000", 2090 | "is_base": false 2091 | }, 2092 | "model": "currencies.currency", 2093 | "pk": 161 2094 | }, 2095 | { 2096 | "fields": { 2097 | "code": "XDR", 2098 | "name": "Special Drawing Rights", 2099 | "symbol": "", 2100 | "is_active": false, 2101 | "is_default": false, 2102 | "factor": "1.0000", 2103 | "is_base": false 2104 | }, 2105 | "model": "currencies.currency", 2106 | "pk": 162 2107 | }, 2108 | { 2109 | "fields": { 2110 | "code": "XOF", 2111 | "name": "CFA Franc BCEAO", 2112 | "symbol": "CFA", 2113 | "is_active": false, 2114 | "is_default": false, 2115 | "factor": "1.0000", 2116 | "is_base": false 2117 | }, 2118 | "model": "currencies.currency", 2119 | "pk": 163 2120 | }, 2121 | { 2122 | "fields": { 2123 | "code": "XPF", 2124 | "name": "CFP Franc", 2125 | "symbol": "F", 2126 | "is_active": false, 2127 | "is_default": false, 2128 | "factor": "1.0000", 2129 | "is_base": false 2130 | }, 2131 | "model": "currencies.currency", 2132 | "pk": 164 2133 | }, 2134 | { 2135 | "fields": { 2136 | "code": "YER", 2137 | "name": "Yemeni Rial", 2138 | "symbol": "\ufdfc", 2139 | "is_active": false, 2140 | "is_default": false, 2141 | "factor": "1.0000", 2142 | "is_base": false 2143 | }, 2144 | "model": "currencies.currency", 2145 | "pk": 165 2146 | }, 2147 | { 2148 | "fields": { 2149 | "code": "ZAR", 2150 | "name": "South African Rand", 2151 | "symbol": "R", 2152 | "is_active": false, 2153 | "is_default": false, 2154 | "factor": "1.0000", 2155 | "is_base": false 2156 | }, 2157 | "model": "currencies.currency", 2158 | "pk": 166 2159 | }, 2160 | { 2161 | "fields": { 2162 | "code": "ZMK", 2163 | "name": "Zambian Kwacha (pre-2013)", 2164 | "symbol": "", 2165 | "is_active": false, 2166 | "is_default": false, 2167 | "factor": "1.0000", 2168 | "is_base": false 2169 | }, 2170 | "model": "currencies.currency", 2171 | "pk": 167 2172 | }, 2173 | { 2174 | "fields": { 2175 | "code": "ZMW", 2176 | "name": "Zambian Kwacha", 2177 | "symbol": "ZK", 2178 | "is_active": false, 2179 | "is_default": false, 2180 | "factor": "1.0000", 2181 | "is_base": false 2182 | }, 2183 | "model": "currencies.currency", 2184 | "pk": 168 2185 | }, 2186 | { 2187 | "fields": { 2188 | "code": "ZWL", 2189 | "name": "Zimbabwean Dollar", 2190 | "symbol": "$", 2191 | "is_active": false, 2192 | "is_default": false, 2193 | "factor": "1.0000", 2194 | "is_base": false 2195 | }, 2196 | "model": "currencies.currency", 2197 | "pk": 169 2198 | } 2199 | ] 2200 | -------------------------------------------------------------------------------- /example/manage.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import os 3 | import sys 4 | 5 | if __name__ == "__main__": 6 | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "example.settings") 7 | 8 | from django.core.management import execute_from_command_line 9 | 10 | # Allow starting the app without installing the module. 11 | sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) 12 | 13 | execute_from_command_line(sys.argv) 14 | -------------------------------------------------------------------------------- /example/requirements.txt: -------------------------------------------------------------------------------- 1 | django 2 | django-filter>0.15 3 | django-currencies 4 | -------------------------------------------------------------------------------- /example/settings.py: -------------------------------------------------------------------------------- 1 | """ 2 | Django settings for app project. 3 | 4 | For more information on this file, see 5 | https://docs.djangoproject.com/en/1.8/topics/settings/ 6 | 7 | For the full list of settings and their values, see 8 | https://docs.djangoproject.com/en/1.8/ref/settings/ 9 | """ 10 | 11 | # Build paths inside the project like this: os.path.join(BASE_DIR, ...) 12 | import os 13 | BASE_DIR = os.path.dirname(os.path.dirname(__file__)) 14 | 15 | # Quick-start development settings - unsuitable for production 16 | # See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/ 17 | 18 | # SECURITY WARNING: keep the secret key used in production secret! 19 | SECRET_KEY = 'YOUR_SECRET_KEY' 20 | 21 | # SECURITY WARNING: don't run with debug turned on in production! 22 | DEBUG = True 23 | 24 | ALLOWED_HOSTS = [] 25 | 26 | # Application definition 27 | 28 | PROJECT_APPS = [ 29 | 'filters', 30 | ] 31 | 32 | INSTALLED_APPS = [ 33 | 'django.contrib.auth', 34 | 'django.contrib.contenttypes', 35 | 'django.contrib.staticfiles', 36 | 37 | 'currencies', 38 | ] + PROJECT_APPS 39 | 40 | ROOT_URLCONF = 'example.urls' 41 | 42 | TEMPLATES = [ 43 | { 44 | 'BACKEND': 'django.template.backends.django.DjangoTemplates', 45 | 'DIRS': [ 46 | os.path.join(os.path.dirname(__file__), 'templates'), 47 | ], 48 | 'APP_DIRS': True, 49 | 'OPTIONS': { 50 | 'context_processors': [ 51 | 'django.template.context_processors.debug', 52 | 'django.template.context_processors.request', 53 | 'django.contrib.auth.context_processors.auth', 54 | ], 55 | }, 56 | }, 57 | ] 58 | 59 | # Database 60 | # https://docs.djangoproject.com/en/1.8/ref/settings/#databases 61 | 62 | DATABASES = { 63 | 'default': { 64 | 'ENGINE': 'django.db.backends.sqlite3', 65 | 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), 66 | } 67 | } 68 | 69 | # Internationalization 70 | # https://docs.djangoproject.com/en/1.8/topics/i18n/ 71 | 72 | LANGUAGE_CODE = 'en-us' 73 | 74 | TIME_ZONE = 'UTC' 75 | 76 | USE_I18N = True 77 | 78 | USE_L10N = True 79 | 80 | USE_TZ = True 81 | 82 | # Static files (CSS, JavaScript, Images) 83 | # https://docs.djangoproject.com/en/1.8/howto/static-files/ 84 | 85 | STATIC_URL = '/static/' 86 | -------------------------------------------------------------------------------- /example/templates/base.html: -------------------------------------------------------------------------------- 1 | {% block content %} 2 | {% endblock %} 3 | 4 | -------------------------------------------------------------------------------- /example/templates/currencies/currency_filter.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | 3 | {% block content %} 4 | {% if filter.form %}
{% endif %} 5 |