~fo0bar/turku/turku-api-cleanup

« back to all changes in this revision

Viewing changes to turku_api/models.py

  • Committer: Ryan Finnie
  • Date: 2015-03-27 07:22:30 UTC
  • Revision ID: ryan.finnie@canonical.com-20150327072230-0jflqg0a9sz6gbqr
Add machine/storage published options

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
                  'being assigned to new machines. Existing machines which ping this storage unit will get errors ' +
159
159
                  'because this storage unit can no longer query the API server.',
160
160
    )
 
161
    published = models.BooleanField(
 
162
        default=True,
 
163
        help_text='Whether this storage unit has been enabled by itself.',
 
164
    )
161
165
    date_registered = models.DateTimeField(
162
166
        default=timezone.now,
163
167
        help_text='Date/time this storage unit was registered.',
232
236
        help_text='Whether this machine is enabled.  Disabling removes its key from its storage unit, stops this ' +
233
237
                  'machine from updating its registration, etc.',
234
238
    )
 
239
    published = models.BooleanField(
 
240
        default=True,
 
241
        help_text='Whether this machine has been enabled by the machine agent.',
 
242
    )
235
243
    date_registered = models.DateTimeField(
236
244
        default=timezone.now,
237
245
        help_text='Date/time this machine was registered.',