Docstrings¶
Filters¶
Forms¶
Models¶
-
class
atom.models.
AttachmentBase
(*args, **kwargs)[source]¶ -
class
Meta
[source]¶ -
abstract
= False¶
-
verbose_name
= u'Attachment'¶
-
verbose_name_plural
= u'Attachments'¶
-
-
AttachmentBase.
attachment
¶ The descriptor for the file attribute on the model instance. Returns a FieldFile when accessed so you can do stuff like:
>>> from myapp.models import MyModel >>> instance = MyModel.objects.get(pk=1) >>> instance.file.size
Assigns a file object on assignment so you can do:
>>> with open('/path/to/hello.world', 'r') as f: ... instance.file = File(f)
-
AttachmentBase.
filename
¶
-
class
Views¶
-
class
atom.views.
BaseActionView
(**kwargs)[source]¶ Base view for action on an object. Using this base class requires subclassing to provide a response mixin.