Home | Trees | Indices | Help |
---|
|
django.contrib.gis.db.models.Model --+ | Feature
Model used for representing user-generated features
====================== ============================================== Attribute Description ====================== ============================================== ``user`` Creator
``name`` Name of the object
``date_created`` When it was created
``date_modified`` When it was last updated. ====================== ==============================================
|
|||
Meta |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
|
|||
|
|||
|
|
|||
user = models.ForeignKey(User, related_name= "%(app_label)s_%(
|
|||
name = models.CharField(verbose_name= "Name", max_length= "255")
|
|||
date_created = models.DateTimeField(auto_now_add= True, verbos
|
|||
date_modified = models.DateTimeField(auto_now= True, verbose_n
|
|||
sharing_groups = models.ManyToManyField(Group, editable= False
|
|||
content_type = models.ForeignKey(ContentType, blank= True, nul
|
|||
object_id = models.PositiveIntegerField(blank= True, null= True)
|
|||
collection = generic.GenericForeignKey('content_type', 'object
|
|||
objects = ShareableGeoManager()
|
|
|
Specifies the CSS for representing features in kmltree, specifically the icon Works one of two ways: 1. Use the icon_url Option and this default css() classmethod 2. Override the css() classmethod for more complex cases |
|
For caching. This string represents a hash of all attributes that may influence reporting results. i.e. if this property changes, reports for the feature get rerun.
|
Unique identifier for this feature.
|
A safety valve for kmlapp... If one feature's .kml property fails, it won't bring down the entire request. This property is never to be overridden!
|
Share this feature with the specified group/groups. Owner must be a member of the group/groups. Group must have 'can_share' permissions else an Exception is raised |
Is this feauture viewable by the specified user? Either needs to own it or have it shared with them. returns : Viewable(boolean), HttpResponse |
Returns a copy of this feature, setting the user to the specified owner. Copies many-to-many relations |
|
user
|
date_created
|
date_modified
|
sharing_groups
|
content_type
|
collection
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Oct 30 11:31:02 2012 | http://epydoc.sourceforge.net |