Certification#
- class user.models.Certification(*args, **kwargs)#
Bases:
ModelKeep all coach certification instance with foreign key relation to user model. Each coach should only have at most 5 certificate. The attachment is stored at /media/certificate/<coach_id>/<filename>
Attributes Summary
Attributes Documentation
- attachment#
The descriptor for the file attribute on the model instance. Return a FieldFile when accessed so you can write code like:
>>> from myapp.models import MyModel >>> instance = MyModel.objects.get(pk=1) >>> instance.file.size
Assign a file object on assignment so you can do:
>>> with open('/path/to/hello.world') as f: ... instance.file = File(f)
- id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- issue_date#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- issue_institution#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- name#
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>#
- user#
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.parentis aForwardManyToOneDescriptorinstance.
- user_id#