clinic_messages package¶
Subpackages¶
Submodules¶
clinic_messages.admin module¶
clinic_messages.apps module¶
clinic_messages.form module¶
-
class
clinic_messages.form.
MessageForm
(*args, **kwargs)¶ Bases:
django.forms.models.ModelForm
-
class
Meta
¶ Bases:
object
-
fields
= '__all__'¶
-
model
¶ alias of
clinic_messages.models.Message
-
-
base_fields
= {'content': <django.forms.fields.CharField object>, 'recipient': <django.forms.models.ModelChoiceField object>, 'subject': <django.forms.fields.CharField object>}¶
-
declared_fields
= {}¶
-
helper
= <crispy_forms.helper.FormHelper object>¶
-
property
media
¶ Return all media required to render the widgets on this form.
-
class
clinic_messages.models module¶
-
class
clinic_messages.models.
Message
(id, subject, content, sender, recipient, replied_to, read, deleted_by_sender, deleted_by_recipient, timestamp)¶ Bases:
django.db.models.base.Model
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
content
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
deleted_by_recipient
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
deleted_by_sender
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
get_next_by_timestamp
(*, field=<django.db.models.fields.DateTimeField: timestamp>, is_next=True, **kwargs)¶
-
get_previous_by_timestamp
(*, field=<django.db.models.fields.DateTimeField: timestamp>, is_next=False, **kwargs)¶
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
message_set
¶ Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
objects
= <django.db.models.manager.Manager object>¶
-
read
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
recipient
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
-
recipient_id
¶
-
replied_to
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
-
replied_to_id
¶
-
sender
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
-
sender_id
¶
-
subject
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
timestamp
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
clinic_messages.tests module¶
clinic_messages.urls module¶
clinic_messages.views module¶
-
clinic_messages.views.
delete_message
(request, id=None)¶
-
clinic_messages.views.
delete_sent_message
(request, id=None)¶
-
clinic_messages.views.
index
(request)¶
-
clinic_messages.views.
new_message
(request, sender_id=None)¶
-
clinic_messages.views.
reply_message
(request, message_id=None, sender_id=None)¶
-
clinic_messages.views.
sent_box
(request)¶
-
clinic_messages.views.
view_message
(request, message_id=None)¶