Skip to content

Commit

Permalink
sample now has notes
Browse files Browse the repository at this point in the history
  • Loading branch information
tamarmot committed Feb 7, 2019
1 parent 92232ad commit e2d2e2f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xgds_sample/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
from django.urls import reverse

from xgds_core.models import SearchableModel, IsFlightChild, IsFlightData
from xgds_notes2.models import NoteMixin, NoteLinksMixin, DEFAULT_NOTES_GENERIC_RELATION

from geocamUtil.loader import LazyGetModelByName
from geocamUtil.models.ExtrasDotField import ExtrasDotField

Expand Down Expand Up @@ -86,7 +88,7 @@ class Meta:
verbose_name=settings.XGDS_CORE_FLIGHT_MONIKER, blank=True, null=True)


class AbstractSample(models.Model, SearchableModel, IsFlightChild, IsFlightData):
class AbstractSample(models.Model, SearchableModel, IsFlightChild, IsFlightData, NoteMixin, NoteLinksMixin):
name = models.CharField(max_length=64, null=True, blank=True, db_index=True) # 9 characters
sample_type = models.ForeignKey(SampleType, null=True)
place = models.ForeignKey(Place, null=True, verbose_name=settings.XGDS_MAP_SERVER_PLACE_MONIKER)
Expand Down Expand Up @@ -389,3 +391,5 @@ class Sample(AbstractSample):
track_position = DEFAULT_TRACK_POSITION_FIELD()
user_position = DEFAULT_USER_POSITION_FIELD()
flight = DEFAULT_FLIGHT_FIELD()
notes = DEFAULT_NOTES_GENERIC_RELATION()

0 comments on commit e2d2e2f

Please sign in to comment.