🏊♂️
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { normalize, schema } from 'normalizr'; | |
// EXAMPLE 1. | |
const myData = {"modules":[{"id":1,"name":"User Management","description":"Admin Can manage User's Permission from this module","permissions":[{"id":191,"name":" Patient - List","controller":"App\\Http\\Controllers\\PatientController","method":"index","checked":false},{"id":168,"name":null,"controller":"\\Laravel\\Passport\\Http\\Controllers\\AuthorizationController","method":"authorize","checked":true},{"id":165,"name":null,"controller":"\\L5Swagger\\Http\\Controllers\\SwaggerController","method":"docs","checked":true},{"id":167,"name":null,"controller":"\\L5Swagger\\Http\\Controllers\\SwaggerController","method":"oauth2Callback","checked":true},{"id":166,"name":" Swagger Asset - List","controller":"\\L5Swagger\\Http\\Controllers\\SwaggerAssetController","method":"index","checked":true}]},{"id":2,"name":"Doctor Management","description":"Admin Can manage Doctor's Permission from this module","permissions":[{"id":168,"name":null,"controller":"\\L |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DISTRICT_CHOICES = ( | |
('Taplejung', 'Taplejung'), | |
('Panchthar', 'Panchthar'), | |
('Ilam', 'Ilam'), | |
('Jhapa', 'Jhapa'), | |
('Morang', 'Morang'), | |
('Sunsari', 'Sunsari'), | |
('Dhankutta', 'Dhankutta'), | |
('Sankhuwasabha', 'Sankhuwasabha'), | |
('Bhojpur', 'Bhojpur'), |