Returns the GeoQuerySet spatial reference identifier.

def get_srid(queryset):
    """Returns the GeoQuerySet spatial reference identifier."""
    try:
        srid = list(six.viewvalues(queryset.query.annotations))[0].srid
    except (AttributeError, IndexError):
        srid = None
    return srid or geo_field(queryset).srid