~ubuntu-branches/ubuntu/raring/maas/raring

« back to all changes in this revision

Viewing changes to src/maasserver/models/__init__.py

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2013-01-30 14:07:52 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20130130140752-k3gksqcql7104whh
Tags: 1.2+bzr1370+dfsg-0ubuntu1
* New upstream release:
  - MAAS file storage mechanism is shifting from a single shared
    namespace to a per-user namespace. Operators of the majority
    of MAAS systems will not notice any change. However, operators
    of the most complex installations may find that a new
    "shared-environment" user is created, and that some resources
    are reassigned to it, such as API credentials and SSH public
    keys. This provides a transitional environment that mimics the
    behaviour of a shared namespace.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    'UserProfile',
27
27
    ]
28
28
 
 
29
# If we're running Django 1.3, monkey patch Django to create the
 
30
# GenericIPAddressField that was introduced in Django 1.4.
 
31
from django import VERSION
 
32
 
 
33
 
 
34
if VERSION[0:2] == (1, 3):
 
35
    import django.db.models.fields as django_fields
 
36
    import django.db.models as django_models
 
37
    from maasserver.dj14.genericipaddressfield import GenericIPAddressField
 
38
    django_fields.GenericIPAddressField = GenericIPAddressField
 
39
    django_models.GenericIPAddressField = GenericIPAddressField
 
40
 
29
41
from logging import getLogger
30
42
 
31
43
from django.contrib import admin