Python django.contrib.gis.db.models.Model() Examples
The following are 1
code examples of django.contrib.gis.db.models.Model().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
django.contrib.gis.db.models
, or try the search function
.
Example #1
Source File: models.py From arches with GNU Affero General Public License v3.0 | 5 votes |
def disable_instance_creation(self): if not self.isresource: return _("Only resource models may be edited - branches are not editable") if not self.isactive: return _("This Model is Inactive and not available for editing") return False