Skip to main content
Ctrl+K

Kossie documentation 2.3 documentation

Contents:

  • Kossie coding convention
    • Main Convention
    • Airbnb React/JSX Style Guide
    • Python pep-8 rules
  • App class
    • Engagement
      • Database
      • User Engagement
    • Meta
      • Meta Models
      • Meta API
    • Notification
      • Notification Model
    • QnA
      • QnA Model
      • QnA Ask Question
      • Coach Portal QNA API
      • Get Qna Data API
      • Ask Question API
    • Referral
      • Referral Model
    • Statistic
      • Statistic
    • User
      • User Model T
      • Authentication
      • Coach Only API
      • Generic function to query user information
      • User model
    • Experimental
      • Guide to write docs
      • SAMPLE Wealth Distribution Dynamics in MyST
  • .rst

CoachLink

CoachLink#

class user.models.CoachLink(*args, **kwargs)#

Bases: Model

create and detect coach link, used for crating link to coach profile

Attributes Summary

Methods Summary

Attributes Documentation

clicked#

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

created#

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

id#

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

link#

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>#
profile#

Accessor to the related object on the forward side of a one-to-one relation.

In the example:

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

profile_id#
updated#

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

Methods Documentation

get_next_by_created(*, field=<django.db.models.fields.DateTimeField: created>, is_next=True, **kwargs)#
get_next_by_updated(*, field=<django.db.models.fields.DateTimeField: updated>, is_next=True, **kwargs)#
get_previous_by_created(*, field=<django.db.models.fields.DateTimeField: created>, is_next=False, **kwargs)#
get_previous_by_updated(*, field=<django.db.models.fields.DateTimeField: updated>, is_next=False, **kwargs)#

By Kossie Team, Firdan Machda

© Copyright 2023, Kossie Team.