(self)
| 159 | return resource_uid |
| 160 | |
| 161 | def get_pack_uid(self): |
| 162 | # TODO: This is not the most efficient approach - refactor this functionality into util |
| 163 | # module and re-use it here and in the DB model |
| 164 | resource_db = self.to_model(self) |
| 165 | pack_uid = resource_db.get_pack_uid() |
| 166 | return pack_uid |
| 167 | |
| 168 | def has_valid_uid(self): |
| 169 | resource_db = self.to_model(self) |